diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 4584b13..4980d7d 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -8,6 +8,7 @@ RUN set -ex; \ x86_64) arch='amd64' ;; \ *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ esac; \ + [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf ; \ wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/v1.7.12/traefik_linux-$arch"; \ chmod +x /usr/local/bin/traefik COPY entrypoint.sh / diff --git a/alpine/tmplv1.Dockerfile b/alpine/tmplv1.Dockerfile index 7c68599..c080a1f 100644 --- a/alpine/tmplv1.Dockerfile +++ b/alpine/tmplv1.Dockerfile @@ -8,6 +8,7 @@ RUN set -ex; \ x86_64) arch='amd64' ;; \ *) echo >&2 "error: unsupported architecture: ${DOLLAR}apkArch"; exit 1 ;; \ esac; \ + [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf ; \ wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/$VERSION/traefik_linux-${DOLLAR}arch"; \ chmod +x /usr/local/bin/traefik COPY entrypoint.sh / diff --git a/scratch/amd64/Dockerfile b/scratch/amd64/Dockerfile index e7228f6..f542ad6 100644 --- a/scratch/amd64/Dockerfile +++ b/scratch/amd64/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/amd64/etc/nsswitch.conf b/scratch/amd64/etc/nsswitch.conf new file mode 100644 index 0000000..19328ff --- /dev/null +++ b/scratch/amd64/etc/nsswitch.conf @@ -0,0 +1 @@ +hosts: files dns \ No newline at end of file diff --git a/scratch/arm/Dockerfile b/scratch/arm/Dockerfile index e7228f6..f542ad6 100644 --- a/scratch/arm/Dockerfile +++ b/scratch/arm/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/arm/etc/nsswitch.conf b/scratch/arm/etc/nsswitch.conf new file mode 100644 index 0000000..19328ff --- /dev/null +++ b/scratch/arm/etc/nsswitch.conf @@ -0,0 +1 @@ +hosts: files dns \ No newline at end of file diff --git a/scratch/arm64/Dockerfile b/scratch/arm64/Dockerfile index e7228f6..f542ad6 100644 --- a/scratch/arm64/Dockerfile +++ b/scratch/arm64/Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"] diff --git a/scratch/arm64/etc/nsswitch.conf b/scratch/arm64/etc/nsswitch.conf new file mode 100644 index 0000000..19328ff --- /dev/null +++ b/scratch/arm64/etc/nsswitch.conf @@ -0,0 +1 @@ +hosts: files dns \ No newline at end of file diff --git a/scratch/tmpl.Dockerfile b/scratch/tmpl.Dockerfile index a82516c..a74082d 100644 --- a/scratch/tmpl.Dockerfile +++ b/scratch/tmpl.Dockerfile @@ -1,5 +1,6 @@ FROM scratch COPY certs/ca-certificates.crt /etc/ssl/certs/ +COPY /etc/nsswitch.conf /etc/ COPY traefik / EXPOSE 80 VOLUME ["/tmp"]