Skip to content

Commit

Permalink
fix: run as an unprivileged user
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpodraza committed Sep 25, 2020
1 parent 1b29585 commit a2fb727
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY ./config/config.yaml /
COPY ./bin/ /
ENTRYPOINT ["/bucketrepo"]
FROM gcr.io/distroless/base:nonroot
COPY ./config/config.yaml /home/nonroot/
COPY ./bin /home/nonroot/
CMD ["/home/nonroot/bucketrepo"]

0 comments on commit a2fb727

Please sign in to comment.