mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-06-11 15:28:50 +00:00
14 lines
422 B
Docker
14 lines
422 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
|
|
RUN addgroup -g 1000 -S deeplx && adduser -h /app -G deeplx -SH -u 1000 deeplx
|
|
USER 1000:1000
|
|
COPY --from=builder --chown=deeplx /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
|
EXPOSE 1188
|
|
ENTRYPOINT ["/app/deeplx"]
|