Skip to content

Commit

Permalink
Add non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Oct 20, 2023
1 parent 15b5bed commit af3643c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM docker.io/library/python:3.11-slim-bullseye

RUN addgroup -S nonroot \
&& adduser -S nonroot -G nonroot
USER nonroot

RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit af3643c

Please sign in to comment.