mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
Size increases by 22MB. (144MB -> 167MB) This normalizes with expectations (and instructions, see impersonation docs) that it will be there.
24 lines
595 B
Docker
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"]
|