2019-12-16 00:14:57 +01:00
|
|
|
FROM golang:alpine as builder
|
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
git \
|
|
|
|
make
|
|
|
|
|
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
2020-05-15 07:50:38 +02:00
|
|
|
ENV POMERIUM_VERSION v0.8.0
|
2019-12-16 00:14:57 +01:00
|
|
|
|
|
|
|
RUN go get github.com/pomerium/pomerium || true \
|
|
|
|
&& cd /go/src/github.com/pomerium/pomerium \
|
|
|
|
&& git checkout "${POMERIUM_VERSION}" \
|
|
|
|
&& make release \
|
|
|
|
&& mv dist/pomerium-linux-amd64 /usr/bin/pomerium
|
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
COPY --from=builder /usr/bin/pomerium /usr/bin/pomerium
|
|
|
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
|
|
|
|
|
|
|
ENTRYPOINT [ "pomerium" ]
|