1
0

Dockerfile: Added user for security reasons

This commit is contained in:
BlueFox 2024-09-21 17:28:05 +02:00
parent 4d94c725a2
commit d0e251de94

View File

@ -19,7 +19,10 @@ FROM alpine
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
USER cmatrix
CMD ["./cmatrix"]