Add non root user (#570)

This commit is contained in:
rahul2393
2020-07-28 15:07:43 +05:30
committed by GitHub
parent 5b9d942313
commit 9c91da8a2b

View File

@@ -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"]