| FROM golang:1.22 AS builder | |
| WORKDIR /build | |
| RUN apt install -y git && \ | |
| git clone https://github.com/OwO-Network/DeepLX.git | |
| WORKDIR /build/DeepLX | |
| RUN go mod download | |
| RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx . | |
| FROM alpine:latest | |
| WORKDIR /app | |
| COPY --from=builder /build/DeepLX/deeplx /app/deeplx | |
| EXPOSE 1188 | |
| CMD ["/app/deeplx"] |