Skip to content

Commit

Permalink
fix: Run as nonroot
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav authored Jul 2, 2024
1 parent 1a1f786 commit 0d1da6f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM ubuntu:latest
RUN useradd -u 10001 gorge

FROM scratch
ENTRYPOINT ["/gorge"]
ENV HOME /home/gorge
USER 10001
COPY gorge /
COPY --from=0 /etc/passwd /etc/passwd
ENTRYPOINT ["/gorge"]

0 comments on commit 0d1da6f

Please sign in to comment.