Switch to appuser
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
4c11a160f4
commit
85ce376ad0
2 changed files with 6 additions and 10 deletions
|
@ -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; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue