Skip to content

Commit

Permalink
Merge pull request #5 from suzuki-shunsuke/run-as-nonroot
Browse files Browse the repository at this point in the history
Run Docker container as non root user for security
  • Loading branch information
chaspy authored Jan 26, 2021
2 parents 61a9c50 + 2dda0eb commit 42f5b94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ FROM alpine:3.13.0 as runner

COPY --from=builder /go/bin/github-pr-prometheus-exporter /app/github-pr-prometheus-exporter

RUN adduser -D -S -H exporter
USER exporter

ENTRYPOINT ["/app/github-pr-prometheus-exporter"]

0 comments on commit 42f5b94

Please sign in to comment.