Skip to content

Commit 933e782

Browse files
authored
Merge pull request #11 from Intellection/switch-to-debian
Switch to debian & upgrade to 2.2
2 parents 37d9cd3 + 0f71fa5 commit 933e782

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.2
4+
5+
* Switch to Debian Stretch base image.
6+
* Upgrade `oauth2_proxy` to v2.2.
7+
38
## 2.1-2
49

510
* Fix 500 Internal Error Internal Error when sending POST to Google

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @itskingori @tsu-shiuan @zacblazic

Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
FROM alpine:3.4
1+
FROM debian:stretch-slim
22

3-
ENV APP_PKGS="ca-certificates"
4-
ENV BUILD_PKGS="wget"
3+
ARG OAUTH2_PROXY_VERSION="2.2"
4+
ARG OAUTH2_PROXY_GOLANG_VERSION="1.8.1"
5+
ARG OAUTH2_PROXY_PKG_VERSION="2.2.0"
6+
ARG OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_PKG_VERSION}.linux-amd64.go${OAUTH2_PROXY_GOLANG_VERSION}"
7+
ARG OAUTH2_PROXY_SHA="1c16698ed0c85aa47aeb80e608f723835d9d1a8b98bd9ae36a514826b3acce56"
58

6-
ENV OAUTH2_PROXY_VERSION="2.1"
7-
ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6" \
8-
OAUTH2_PROXY_SHA="3061e5b04bd14eeb9ec0ad1c9b324ba8d99d50eaadc5f528cdf4d21043828298"
9-
RUN apk update && \
10-
apk upgrade && \
11-
apk add $APP_PKGS $BUILD_PKGS && \
9+
RUN apt-get update -y && \
10+
apt-get install --no-install-recommends -y \
11+
ca-certificates wget && \
1212
mkdir -p /var/tmp/oauth2_proxy && \
1313
cd /var/tmp/oauth2_proxy && \
1414
wget --progress=dot:mega https://github.com/bitly/oauth2_proxy/releases/download/v${OAUTH2_PROXY_VERSION}/${OAUTH2_PROXY_PKG}.tar.gz && \
1515
echo "${OAUTH2_PROXY_SHA} *${OAUTH2_PROXY_PKG}.tar.gz" | sha256sum -c - && \
1616
tar xvf ${OAUTH2_PROXY_PKG}.tar.gz && \
1717
cp /var/tmp/oauth2_proxy/${OAUTH2_PROXY_PKG}/oauth2_proxy /bin/ && \
18-
apk del $BUILD_PKGS && \
19-
rm -rf /var/cache/apk/*
18+
rm -rf /tmp/* /var/{cache,log,tmp} /var/lib/{apt,dpkg,cache,log}
2019

2120
EXPOSE 4180
2221

0 commit comments

Comments
 (0)