Skip to content

Commit

Permalink
fix(dns): /etc/hosts was ignored by traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
kopax authored Dec 12, 2019
1 parent 5f50d2e commit 7e80565
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ COPY script/ca-certificates.crt /etc/ssl/certs/
COPY dist/traefik /
EXPOSE 80
VOLUME ["/tmp"]
## Fix nssswitch not looking at host file (See https://stackoverflow.com/questions/49476452/traefik-forwarding-to-a-host-and-overriding-ip?answertab=oldest#tab-top)
RUN echo "hosts: files dns" > /etc/nsswitch.conf
ENTRYPOINT ["/traefik"]

0 comments on commit 7e80565

Please sign in to comment.