Skip to content

Commit 1b8d307

Browse files
author
Paulo Gomes
authored
Merge pull request #458 from pjbgf/remove-nsswitch
Remove nsswitch.conf creation
2 parents 93055b0 + 564b0b5 commit 1b8d307

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ ARG TARGETPLATFORM
7878
RUN apk --no-cache add ca-certificates \
7979
&& update-ca-certificates
8080

81-
# Create minimal nsswitch.conf file to prioritize the usage of /etc/hosts over DNS queries.
82-
# https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-354316460
83-
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
84-
8581
# Copy over binary from build
8682
COPY --from=build /image-automation-controller /usr/local/bin/
8783
COPY ATTRIBUTIONS.md /

0 commit comments

Comments
 (0)