diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-21 15:57:28 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-21 15:57:28 -0600 |
| commit | b31d3761491022b0504383a479728e498f099c50 (patch) | |
| tree | 61249e9a03619dcd103f9e93d38466d44146e365 | |
| parent | 986e3e1ddd5183e10a35e345b6c6a7e887497122 (diff) | |
chore: use debug image to provide sh for envoy-shim to generate yaml config from environment variables
| -rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -18,9 +18,12 @@ RUN go build -o /bin/sparkled ./cmd/sparkled/main.go RUN go build -o /bin/authzd ./cmd/authzd/main.go # Final stage -FROM gcr.io/distroless/base-debian12:nonroot +FROM gcr.io/distroless/base-debian12:debug-nonroot EXPOSE 10000 WORKDIR / +USER root +RUN ["/busybox/sh", "-c", "ln -s /busybox/sh /bin/sh"] +USER nonroot COPY --from=envoy-binary /usr/local/bin/envoy /bin/envoy COPY --from=dumb-init-builder /usr/bin/dumb-init /bin/dumb-init COPY --from=build /app/Procfile /Procfile |
