Skip to content

Commit

Permalink
Proper user permission for container
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Medvedev committed Jul 12, 2024
1 parent 4b0130e commit 5b3f459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ RUN groupadd --gid $GROUP_ID --non-unique $APP_GROUP && \
useradd --no-log-init --uid $USER_ID --non-unique --gid $GROUP_ID --create-home --shell /bin/bash $APP_USER && \
echo Created user $USER_ID and group $GROUP_ID

USER $APP_USER
WORKDIR $CODE_FOLDER

COPY . .
RUN pip install -r requirements.txt

USER $APP_USER

CMD sbx-mocks3-serve

0 comments on commit 5b3f459

Please sign in to comment.