Skip to content

Commit

Permalink
Use user nobody in Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Aug 4, 2021
1 parent 3872d89 commit 8b7c6d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ COPY --from=0 /restic /bin/restic
COPY bin/{ARG_OS}_{ARG_ARCH}/{ARG_BIN} /{ARG_BIN}
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# This would be nicer as `nobody:nobody` but distroless has no such entries.
USER 65535:65535
USER nobody

ENTRYPOINT ["/{ARG_BIN}"]

0 comments on commit 8b7c6d3

Please sign in to comment.