mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-03-18 22:48:51 +00:00
* Initial plan * Update Dockerfile to use golang:1.25 to match go.mod requirement Co-authored-by: thedavidweng <95214375+thedavidweng@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
11 lines
294 B
Docker
11 lines
294 B
Docker
FROM golang:1.25 AS builder
|
|
WORKDIR /go/src/github.com/OwO-Network/DeepLX
|
|
COPY . .
|
|
RUN go get -d -v ./
|
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
|
CMD ["/app/deeplx"]
|