From 231eb7df794b88c8ef8ad695803f0a20a910359a Mon Sep 17 00:00:00 2001 From: farrell-m Date: Wed, 24 Jul 2024 11:10:05 +0100 Subject: [PATCH] update add group / user commands --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eebb9c0..e58c5fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ VOLUME /tmp COPY assessment-service-${app_version}.jar assessment-service.jar EXPOSE 8080 -RUN addgroup --system --gid 800 customgroup \ - && adduser --system --uid 800 --ingroup customgroup --shell /bin/sh customuser +RUN groupadd --system --gid 800 customgroup \ + && useradd --system --uid 800 --gid customgroup --shell /bin/sh customuser RUN chown customuser:customgroup assessment-service.jar USER 800