Switch to appuser

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
Benoit Donneaux 2024-05-23 11:34:47 +02:00
parent 4c11a160f4
commit 85ce376ad0
2 changed files with 6 additions and 10 deletions

View file

@ -10,9 +10,9 @@ RUN INSTALL_PKGS="gcc g++ libyaml-dev make nodejs" && \
# Parameters for default user:group
ARG uid=1000
ARG user=ubuntu
ARG user=appuser
ARG gid=1000
ARG group=ubuntu
ARG group=appgroup
# Ensure desired user and group for build and runtime (convenient)
RUN userdel --force --remove $(getent passwd ${uid} | cut -d: -f1) || true; \