File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 2.1-1
4+
5+ * Add SHA check of package.
6+
37## 2.1
48
59* Package ` oauth2_proxy ` v2.1 with Alpine 3.4 base image.
Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ FROM alpine:3.4
33ENV BUILD_PKGS="ca-certificates wget"
44
55ENV OAUTH2_PROXY_VERSION="2.1"
6- ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6"
6+ ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6" \
7+ OAUTH2_PROXY_SHA="3061e5b04bd14eeb9ec0ad1c9b324ba8d99d50eaadc5f528cdf4d21043828298"
78RUN apk update && \
89 apk upgrade && \
910 apk add $BUILD_PKGS && \
1011 mkdir -p /var/tmp/oauth2_proxy && \
1112 cd /var/tmp/oauth2_proxy && \
1213 wget --progress=dot:mega https://github.com/bitly/oauth2_proxy/releases/download/v${OAUTH2_PROXY_VERSION}/${OAUTH2_PROXY_PKG}.tar.gz && \
14+ echo "${OAUTH2_PROXY_SHA} *${OAUTH2_PROXY_PKG}.tar.gz" | sha256sum -c - && \
1315 tar xvf ${OAUTH2_PROXY_PKG}.tar.gz && \
1416 cp /var/tmp/oauth2_proxy/${OAUTH2_PROXY_PKG}/oauth2_proxy /bin/ && \
1517 apk del $BUILD_PKGS && \
You can’t perform that action at this time.
0 commit comments