diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-03 16:26:44 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-03 16:26:44 -0600 |
| commit | 0a81a89b717dc6d65436b491cbc6c8e9308df2c3 (patch) | |
| tree | 269c48ed5365ba14e9a0138a3611e778980de9e7 /Dockerfile | |
| parent | c783af99f9f3da740f553e7c9cbc768fd2a89724 (diff) | |
chore: use forego to start services
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 24 |
1 files changed, 8 insertions, 16 deletions
@@ -10,26 +10,18 @@ RUN strip /app/target/x86_64-unknown-linux-musl/release/authzd # Build stage for getting Envoy binary FROM envoyproxy/envoy:v1.34-latest AS envoy-binary -# Build stage for goreman (Procfile supervisor) -FROM golang:1.23-alpine AS goreman-builder -RUN go install github.com/mattn/goreman@latest +# Build stage for Procfile supervisor +FROM golang:1.23-alpine AS forego-builder +RUN go install github.com/ddollar/forego@latest # Final stage FROM gcr.io/distroless/base-debian12:nonroot EXPOSE 9901 10000 50051 WORKDIR / - -# Copy binaries -COPY --from=authzd-builder /app/target/x86_64-unknown-linux-musl/release/authzd /bin/authzd -COPY --from=envoy-binary /usr/local/bin/envoy /bin/envoy -COPY --from=goreman-builder /go/bin/goreman /bin/goreman - -# Copy configurations +COPY --from=authzd-builder /app/Procfile /Procfile COPY --from=authzd-builder /app/etc/authzd /etc/authzd COPY --from=authzd-builder /app/etc/envoy /etc/envoy - -# Copy Procfile and goreman config -COPY --from=authzd-builder /app/Procfile /Procfile - -ENTRYPOINT ["/bin/goreman"] -CMD ["start"] +COPY --from=authzd-builder /app/target/x86_64-unknown-linux-musl/release/authzd /bin/authzd +COPY --from=envoy-binary /usr/local/bin/envoy /bin/envoy +COPY --from=forego-builder /go/bin/forego /bin/forego +ENTRYPOINT ["/bin/forego", "start"] |
