summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile24
1 files changed, 8 insertions, 16 deletions
diff --git a/Dockerfile b/Dockerfile
index cbb0692f..b9af3b0d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]