DeepLX/Dockerfile

11 lines
296 B
Docker
Raw Normal View History

2024-10-08 07:25:36 +08:00
FROM golang:1.23.2 AS builder
WORKDIR /go/src/github.com/OwO-Network/DeepLX
2024-09-17 00:08:54 +08:00
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"]