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 23, 2023
1 parent f2f54c2 commit f0944d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
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 --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/* \
Expand Down

0 comments on commit f0944d6

Please sign in to comment.