summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 030b528..ef47686 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,6 +8,7 @@ RUN go build -o /bin/authzd ./cmd/authzd/main.go
FROM envoyproxy/envoy:v1.34-latest
EXPOSE 8080 9901 10000 10003
+RUN apt-get update && apt-get install -y dumb-init && rm -rf /var/lib/apt/lists/*
WORKDIR /opt/sparkle/
RUN mkdir -p bin etc public
COPY --from=build /bin/authzd bin/authzd
@@ -16,4 +17,5 @@ COPY --from=build /app/public public
COPY etc/ etc
COPY bin/*.sh bin/
RUN chmod +x bin/*.sh
+ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/opt/sparkle/bin/entrypoint.sh"]