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 also for alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
mprasil committed Nov 23, 2018
1 parent b81cef9 commit ca47dba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN set -ex; \
wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/v1.7.4/traefik_linux-$arch"; \
chmod +x /usr/local/bin/traefik
COPY entrypoint.sh /
COPY /etc/nsswitch.conf /etc/
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["traefik"]
Expand Down
20 changes: 20 additions & 0 deletions alpine/etc/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat
gshadow: files

hosts: files dns
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

0 comments on commit ca47dba

Please sign in to comment.