File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:1.12 -alpine
1
+ FROM golang:1.13 -alpine
2
2
3
3
RUN apk update && apk add git
4
4
RUN wget -O /usr/local/bin/dep \
5
- https://github.com/golang/dep/releases/download/v0.5.0 /dep-linux-amd64 \
5
+ https://github.com/golang/dep/releases/download/v0.5.4 /dep-linux-amd64 \
6
6
&& chmod a+x /usr/local/bin/dep
7
7
8
8
WORKDIR $GOPATH/src/github.com/ploxiln/oauth2_proxy/
@@ -14,7 +14,13 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/local/bin/oauth2_proxy
14
14
FROM busybox
15
15
16
16
EXPOSE 4180
17
+
18
+ # set up nsswitch.conf for Go's "netgo" implementation
19
+ # https://github.com/golang/go/issues/35305
20
+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
21
+
17
22
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
18
23
COPY --from=0 /usr/local/bin/oauth2_proxy /usr/local/bin/
24
+
19
25
USER www-data
20
26
CMD ["oauth2_proxy" ]
You can’t perform that action at this time.
0 commit comments