Skip to content

Commit 2c2db92

Browse files
committed
fix: add entrypoint to Dockerfiles
This is a port of GoogleCloudPlatform/cloud-sql-proxy#1298.
1 parent 5c1b3bd commit 2c2db92

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ FROM gcr.io/distroless/static:nonroot
3030
COPY --from=build --chown=nonroot /go/src/alloydb-auth-proxy/alloydb-auth-proxy /alloydb-auth-proxy
3131
# set the uid as an integer for compatibility with runAsNonRoot in Kubernetes
3232
USER 65532
33+
ENTRYPOINT ["/alloydb-db-auth-proxy"]

Dockerfile.alpine

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ RUN addgroup -g 65532 -S nonroot && adduser -u 65532 -S nonroot -G nonroot
3838
USER 65532
3939

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

Dockerfile.buster

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ RUN groupadd -g 65532 -r nonroot && useradd -u 65532 -g 65532 -r nonroot
3636
USER 65532
3737

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

0 commit comments

Comments
 (0)