Skip to content

Commit

Permalink
add the nobody to scratch (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenrumney committed May 20, 2021
1 parent 9f2bc6a commit 08e744f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile.scratch
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM alpine as nobody

FROM scratch
# use a non-privileged user
# use a non-privileged user but need to add it in
COPY --from=nobody /etc/group /etc/passwd /etc/
USER nobody
# work somewhere where we can write
COPY tfsec /usr/bin/tfsec
Expand Down

0 comments on commit 08e744f

Please sign in to comment.