Skip to content

Commit

Permalink
run docker container as non root
Browse files Browse the repository at this point in the history
  • Loading branch information
shadjac committed Nov 30, 2018
1 parent a27eab4 commit 4f8ac0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uid-demo-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM debian:stretch
RUN groupadd -g 999 appuser && \
useradd -r -u 999 -g appuser appuser
USER appuser
COPY secrets.txt /tmp/secrets.txt
CMD ["cat", "/tmp/secrets.txt"]

0 comments on commit 4f8ac0c

Please sign in to comment.