Skip to content

Commit

Permalink
Add non root user (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul2393 committed Jul 28, 2020
1 parent 5b9d942 commit 9c91da8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM alpine:3.12
RUN addgroup -g 1000 -S appgroup && adduser -u 1000 -S appuser -G appgroup
RUN apk --no-cache add ca-certificates git rpm
COPY trivy /usr/local/bin/trivy
COPY contrib/gitlab.tpl contrib/gitlab.tpl
COPY contrib/junit.tpl contrib/junit.tpl
USER appuser
ENTRYPOINT ["trivy"]

0 comments on commit 9c91da8

Please sign in to comment.