File tree 4 files changed +28
-4
lines changed 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:3.7
2
2
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
4
10
5
11
ENV GOLANG_VERSION 1.10.2
6
12
Original file line number Diff line number Diff line change 1
1
FROM alpine:3.6
2
2
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
4
10
5
11
ENV GOLANG_VERSION 1.9.6
6
12
Original file line number Diff line number Diff line change 1
1
FROM alpine:3.7
2
2
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
4
10
5
11
ENV GOLANG_VERSION 1.9.6
6
12
Original file line number Diff line number Diff line change 1
1
FROM alpine:%%TAG%%
2
2
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
4
10
5
11
ENV GOLANG_VERSION %%VERSION%%
6
12
You can’t perform that action at this time.
0 commit comments