From 6ae6b7d2f5de6ec25fba622c22f0bd9d11d636d9 Mon Sep 17 00:00:00 2001 From: Sella-GH <147769367+Sella-GH@users.noreply.github.com> Date: Sun, 19 Jan 2025 16:41:21 +0100 Subject: [PATCH] Remove explicit group addition from dockerfile --- dev.Dockerfile | 2 +- dev.alpine.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev.Dockerfile b/dev.Dockerfile index abcb8256..db0a536f 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -37,7 +37,7 @@ RUN sed -i "s\Commit not found\\$COMMIT\g" /app/Modules/Core/Files/AppStats.json && sed -i "s\Lines of source code not found\\$LOC_CS\g" /app/Modules/Core/Files/AppStats.json # Add new user -RUN groupadd azzy && useradd -m -s /bin/bash -g azzy azzy && chown -R azzy:azzy /app && chmod 0755 -R /app +RUN useradd -M -U azzy && chown -R azzy:azzy /app && chmod 0755 -R /app USER azzy # Start the app diff --git a/dev.alpine.Dockerfile b/dev.alpine.Dockerfile index 3b269243..44005197 100644 --- a/dev.alpine.Dockerfile +++ b/dev.alpine.Dockerfile @@ -37,7 +37,7 @@ RUN sed -i "s\Commit not found\\$COMMIT\g" /app/Modules/Core/Files/AppStats.json && sed -i "s\Lines of source code not found\\$LOC_CS\g" /app/Modules/Core/Files/AppStats.json # Add new user -RUN addgroup azzy && adduser -D -G azzy azzy && chown -R azzy:azzy /app && chmod 0755 -R /app +RUN adduser -D -H azzy && chown -R azzy:azzy /app && chmod 0755 -R /app USER azzy # Start the app