Skip to content

Commit

Permalink
fix: add entrypoint to Dockerfiles (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom authored Sep 21, 2022
1 parent 5649176 commit 1d03b71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ FROM gcr.io/distroless/static:nonroot
COPY --from=build --chown=nonroot /go/src/alloydb-auth-proxy/alloydb-auth-proxy /alloydb-auth-proxy
# set the uid as an integer for compatibility with runAsNonRoot in Kubernetes
USER 65532
ENTRYPOINT ["/alloydb-auth-proxy"]
1 change: 1 addition & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ RUN addgroup -g 65532 -S nonroot && adduser -u 65532 -S nonroot -G nonroot
USER 65532

COPY --from=build --chown=nonroot /go/src/alloydb-auth-proxy/alloydb-auth-proxy /alloydb-auth-proxy
ENTRYPOINT ["/alloydb-auth-proxy"]
1 change: 1 addition & 0 deletions Dockerfile.buster
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ RUN groupadd -g 65532 -r nonroot && useradd -u 65532 -g 65532 -r nonroot
USER 65532

COPY --from=build --chown=nonroot /go/src/alloydb-auth-proxy/alloydb-auth-proxy /alloydb-auth-proxy
ENTRYPOINT ["/alloydb-auth-proxy"]

0 comments on commit 1d03b71

Please sign in to comment.