diff --git a/images/peer/Dockerfile b/images/peer/Dockerfile index 18a4c74e523..5ce9da4796e 100644 --- a/images/peer/Dockerfile +++ b/images/peer/Dockerfile @@ -10,7 +10,7 @@ RUN apk add --no-cache tzdata # set up nsswitch.conf for Go's "netgo" implementation # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf -RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf +RUN echo 'hosts: files dns' > /etc/nsswitch.conf FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang RUN apk add --no-cache \