Skip to content

Commit

Permalink
chore: make USER non-root
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxbandit committed Aug 5, 2023
1 parent 2dc7f1f commit 1f1d20d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dispatcher/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY ./templates /usr/app/templates
COPY ./dispatcher/main.py /usr/app/src/main.py

#USER python

#ENV FOO=BAR
RUN useradd -s /bin/bash python
USER python

ENTRYPOINT [ "python", "-u" ]
CMD ["main.py"]

0 comments on commit 1f1d20d

Please sign in to comment.