pomerium/Dockerfile
Robert 1846c71d94
Include pomerium-cli in the docker image by default. Fixes #1343. (#1345)
Size increases by 22MB.  (144MB -> 167MB)

This normalizes with expectations (and instructions, see impersonation
docs) that it will be there.
2020-08-28 15:39:54 -04:00

24 lines
595 B
Docker

FROM golang:latest as build
WORKDIR /go/src/github.com/pomerium/pomerium
RUN apt-get update \
&& apt-get -y install zip
# cache depedency downloads
COPY go.mod go.sum ./
RUN go mod download
COPY . .
# build
RUN make build-deps
RUN make build NAME=pomerium
RUN make build NAME=pomerium-cli
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"]