From 0aafb7c4d4fae260ebb18e331fb61eabda15fcec Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 15 Dec 2019 15:14:57 -0800 Subject: [PATCH] add pomerium Signed-off-by: Jess Frazelle --- latest-versions.sh | 1 + pomerium/Dockerfile | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 pomerium/Dockerfile diff --git a/latest-versions.sh b/latest-versions.sh index 1220c13..2ff5ebb 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -128,6 +128,7 @@ facebook/osquery hashicorp/packer Tautulli/Tautulli perkeep/perkeep +pomerium/pomerium powershell/powershell Radarr/Radarr cesanta/docker_auth diff --git a/pomerium/Dockerfile b/pomerium/Dockerfile new file mode 100644 index 0000000..b8323e1 --- /dev/null +++ b/pomerium/Dockerfile @@ -0,0 +1,26 @@ +FROM golang:alpine as builder +LABEL maintainer "Jessie Frazelle " + +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.5.2 + +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" ]