Skip to content

Commit

Permalink
Use nonroot version of distroless debian, run as nonroot user
Browse files Browse the repository at this point in the history
  • Loading branch information
nathancoleman committed Aug 11, 2023
1 parent 9a7b77d commit 35acafb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apk add dumb-init

# release-default release image
# -----------------------------------
FROM gcr.io/distroless/base-debian11 AS release-default
FROM gcr.io/distroless/base-debian11:nonroot AS release-default

ARG BIN_NAME
ARG PRODUCT_VERSION
Expand All @@ -44,8 +44,6 @@ COPY --from=envoy-binary /usr/local/bin/envoy /usr/local/bin/
COPY --from=dumb-init /usr/bin/dumb-init /usr/local/bin/
COPY dist/$TARGETOS/$TARGETARCH/$BIN_NAME /usr/local/bin/

USER 100

ENTRYPOINT ["/usr/local/bin/dumb-init", "/usr/local/bin/consul-dataplane"]

# Red Hat UBI-based image
Expand Down

0 comments on commit 35acafb

Please sign in to comment.