Skip to content

Commit

Permalink
Update Dockerfile user command
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Jun 6, 2024
1 parent fb3e93a commit a7493a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ RUN apt-get update \
# Create the home directory for the new app user.
RUN mkdir -p $HOME

# Create an app user so the program doesn't run as root.
RUN groupadd -r app && \
useradd -r -g app -d $HOME -s /sbin/nologin -c "Docker image user" app
# Modify the existing app user to prevent login.
RUN usermod -s /sbin/nologin -c "Docker image user" app

## Set up application install directory.
RUN mkdir $APP_HOME && \
Expand Down

0 comments on commit a7493a8

Please sign in to comment.