pomerium/Dockerfile
Travis Groth b9b66ec20f
deploy: autocert documentation and defaults (#658)
* Define AUTOCERT_DIR in dockerfiles

* Add autocert example and compose file

* Update reference docs for defaults
2020-05-05 21:13:28 -04:00

19 lines
470 B
Docker

FROM golang:latest as build
WORKDIR /go/src/github.com/pomerium/pomerium
# cache depedency downloads
COPY go.mod go.sum ./
RUN go mod download
COPY . .
# build
RUN make
RUN touch /config.yaml
FROM gcr.io/distroless/base:debug
ENV AUTOCERT_DIR /data/autocert
WORKDIR /pomerium
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
COPY --from=build /config.yaml /pomerium/config.yaml
ENTRYPOINT [ "/bin/pomerium" ]
CMD ["-config","/pomerium/config.yaml"]