Skip to content

Commit 38f2302

Browse files
committed
Add root certificates
Addresses "500 Internal Error Internal Error" caused by "failed to load system roots and no roots provided" issue. See: #9
1 parent 676f2dd commit 38f2302

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
FROM alpine:3.4
22

3-
ENV BUILD_PKGS="ca-certificates wget"
3+
ENV APP_PKGS="ca-certificates"
4+
ENV BUILD_PKGS="wget"
45

56
ENV OAUTH2_PROXY_VERSION="2.1"
67
ENV OAUTH2_PROXY_PKG="oauth2_proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.go1.6" \
78
OAUTH2_PROXY_SHA="3061e5b04bd14eeb9ec0ad1c9b324ba8d99d50eaadc5f528cdf4d21043828298"
89
RUN apk update && \
910
apk upgrade && \
10-
apk add $BUILD_PKGS && \
11+
apk add $APP_PKGS $BUILD_PKGS && \
1112
mkdir -p /var/tmp/oauth2_proxy && \
1213
cd /var/tmp/oauth2_proxy && \
1314
wget --progress=dot:mega https://github.com/bitly/oauth2_proxy/releases/download/v${OAUTH2_PROXY_VERSION}/${OAUTH2_PROXY_PKG}.tar.gz && \

0 commit comments

Comments
 (0)