mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-06-11 15:28:50 +00:00
Use non-root user to run deeplx
This commit is contained in:
parent
432c0a223c
commit
a987c82641
@ -6,5 +6,8 @@ RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o deeplx .
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /go/src/github.com/OwO-Network/DeepLX/deeplx /app/deeplx
|
RUN addgroup -S deeplx && adduser -h /app -G deeplx -SH deeplx
|
||||||
CMD ["/app/deeplx"]
|
USER deeplx
|
||||||
|
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