mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-06-11 15:28:50 +00:00
Use deterministic UID/GID (1000:1000) to execute the deeplx binary
This commit is contained in:
parent
a987c82641
commit
3aa23e1c4f
@ -6,8 +6,8 @@ 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
|
||||
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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user