Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
Add nsswitch.conf file into the image
Browse files Browse the repository at this point in the history
  • Loading branch information
mprasil committed Jun 7, 2019
1 parent 8c0a850 commit e147350
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down
1 change: 1 addition & 0 deletions alpine/tmplv1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down
1 change: 1 addition & 0 deletions scratch/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
1 change: 1 addition & 0 deletions scratch/amd64/etc/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hosts: files dns
1 change: 1 addition & 0 deletions scratch/arm/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
1 change: 1 addition & 0 deletions scratch/arm/etc/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hosts: files dns
1 change: 1 addition & 0 deletions scratch/arm64/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
1 change: 1 addition & 0 deletions scratch/arm64/etc/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hosts: files dns
1 change: 1 addition & 0 deletions scratch/tmpl.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down

0 comments on commit e147350

Please sign in to comment.