Skip to content

Commit

Permalink
Base image alpine:3.16 already has required nsswitch configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
abjugard committed Jan 17, 2023
1 parent aca93ae commit ffa8b84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions 2.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ RUN set -eux; \
chmod +x /usr/bin/caddy; \
caddy version

# set up nsswitch.conf for Go's "netgo" implementation
# - https://github.com/docker-library/golang/blob/1eb096131592bcbc90aa3b97471811c798a93573/1.14/alpine3.12/Dockerfile#L9
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

# See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data
Expand Down
4 changes: 0 additions & 4 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ RUN set -eux; \
chmod +x /usr/bin/caddy; \
caddy version

# set up nsswitch.conf for Go's "netgo" implementation
# - https://github.com/docker-library/golang/blob/1eb096131592bcbc90aa3b97471811c798a93573/1.14/alpine3.12/Dockerfile#L9
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

# See https://caddyserver.com/docs/conventions#file-locations for details
ENV XDG_CONFIG_HOME /config
ENV XDG_DATA_HOME /data
Expand Down

0 comments on commit ffa8b84

Please sign in to comment.