mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2024-11-16 02:52:21 +08:00
11 lines
296 B
Docker
11 lines
296 B
Docker
FROM golang:1.23.2 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"]
|