dockerfiles/pomerium/Dockerfile
Jess Frazelle 6e9bae62f8
update versions
Signed-off-by: Jess Frazelle <jess@oxide.computer>
2020-05-29 13:44:12 -07:00

27 lines
590 B
Docker

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
ENV POMERIUM_VERSION v0.8.3
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" ]