Dockerfile: Added user for security reasons
This commit is contained in:
parent
4d94c725a2
commit
d0e251de94
@ -19,7 +19,10 @@ FROM alpine
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
LABEL org.opencontainers.image.authors="bluefox@privacynerd.de"
|
||||||
|
|
||||||
RUN apk update --no-cache && apk add --no-cache ncurses-terminfo-base
|
RUN apk update --no-cache && \
|
||||||
|
apk add --no-cache ncurses-terminfo-base && \
|
||||||
|
adduser -g "cmatrix" -s /usr/sbin/nologin -D -H cmatrix
|
||||||
COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix
|
COPY --from=cmatrixbuildimage /cmatrix/cmatrix /cmatrix
|
||||||
|
|
||||||
|
USER cmatrix
|
||||||
CMD ["./cmatrix"]
|
CMD ["./cmatrix"]
|
||||||
|
Loading…
Reference in New Issue
Block a user