mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-05 01:39:12 +02:00
18 lines
705 B
Text
18 lines
705 B
Text
# build our own root trust store from current stable
|
|
FROM debian:stable as casource
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
|
# Remove expired root (https://github.com/pomerium/pomerium/issues/2653)
|
|
RUN rm /usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt && update-ca-certificates
|
|
|
|
|
|
FROM busybox:latest as build
|
|
RUN touch /config.yaml
|
|
|
|
FROM gcr.io/distroless/base-debian10:debug-${TARGETARCH:-amd64}
|
|
ENV AUTOCERT_DIR /data/autocert
|
|
WORKDIR /pomerium
|
|
COPY pomerium /bin/
|
|
COPY --from=build /config.yaml /pomerium/config.yaml
|
|
COPY --from=casource /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
ENTRYPOINT [ "/bin/pomerium" ]
|
|
CMD ["-config","/pomerium/config.yaml"]
|