Skip to content

Commit

Permalink
Update docker image to use non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
swoehrl-mw committed Sep 19, 2022
1 parent 1ea7e79 commit 8113564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.7-slim
COPY requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
COPY opsbot /opsbot

RUN adduser --no-create-home --uid 1000 opsbot && chown -R opsbot /opsbot
USER 1000
EXPOSE 5000

CMD ["python" , "-m", "opsbot.main"]

0 comments on commit 8113564

Please sign in to comment.