pomerium/Dockerfile
Travis Groth 7ad528fef5
Update docker master/latest tag handling (#598)
* Ensure latest is actually latest semver and not last published

* Resume publishing master snapshot

* Build master image off debug gcr.io/distroless/base:debug
2020-04-12 14:42:03 -04:00

18 lines
438 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
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"]