Skip to content

Commit

Permalink
Remove explicit group addition from dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sella-GH committed Jan 19, 2025
1 parent 150fc41 commit 6ae6b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dev.alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ae6b7d

Please sign in to comment.