From d0e251de947cf773cd6af558602f848045d68ede Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 21 Sep 2024 17:28:05 +0200 Subject: [PATCH] Dockerfile: Added user for security reasons --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d66b544..bd9406a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]