DeepLX/Dockerfile
Vincent Young 4424f0489a
fix(release): keep deeplx binary and Docker package names
Only the GitHub repository was renamed to DLX. Restore historical
artifact names: deeplx_* release binaries, missuo/deeplx Docker Hub,
ghcr.io/owo-network/deeplx, and matching install/systemd/launchd paths.
2026-08-04 20:22:23 +08:00

14 lines
411 B
Docker

FROM golang:1.25 AS builder
WORKDIR /go/src/github.com/OwO-Network/DLX
COPY . .
RUN go get -d -v ./
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
FROM alpine:latest
WORKDIR /app
RUN addgroup -S deeplx && adduser -h /app -G deeplx -SH deeplx
USER deeplx:deeplx
COPY --from=builder --chown=deeplx:deeplx /go/src/github.com/OwO-Network/DLX/deeplx /app/deeplx
EXPOSE 1188
ENTRYPOINT ["/app/deeplx"]