File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.7
22
3- RUN apk add --no-cache ca-certificates
3+ RUN apk add --no-cache \
4+ ca-certificates
5+
6+ # set up nsswitch.conf for Go's "netgo" implementation
7+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
8+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
9+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
410
511ENV GOLANG_VERSION 1.10.2
612
Original file line number Diff line number Diff line change 11FROM alpine:3.6
22
3- RUN apk add --no-cache ca-certificates
3+ RUN apk add --no-cache \
4+ ca-certificates
5+
6+ # set up nsswitch.conf for Go's "netgo" implementation
7+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
8+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
9+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
410
511ENV GOLANG_VERSION 1.9.6
612
Original file line number Diff line number Diff line change 11FROM alpine:3.7
22
3- RUN apk add --no-cache ca-certificates
3+ RUN apk add --no-cache \
4+ ca-certificates
5+
6+ # set up nsswitch.conf for Go's "netgo" implementation
7+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
8+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
9+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
410
511ENV GOLANG_VERSION 1.9.6
612
Original file line number Diff line number Diff line change 11FROM alpine:%%TAG%%
22
3- RUN apk add --no-cache ca-certificates
3+ RUN apk add --no-cache \
4+ ca-certificates
5+
6+ # set up nsswitch.conf for Go's "netgo" implementation
7+ # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
8+ # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
9+ RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
410
511ENV GOLANG_VERSION %%VERSION%%
612
You can’t perform that action at this time.
0 commit comments