Skip to content

Commit

Permalink
Merge pull request #458 from pjbgf/remove-nsswitch
Browse files Browse the repository at this point in the history
Remove nsswitch.conf creation
  • Loading branch information
Paulo Gomes authored Nov 14, 2022
2 parents 93055b0 + 564b0b5 commit 1b8d307
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ ARG TARGETPLATFORM
RUN apk --no-cache add ca-certificates \
&& update-ca-certificates

# Create minimal nsswitch.conf file to prioritize the usage of /etc/hosts over DNS queries.
# https://github.com/gliderlabs/docker-alpine/issues/367#issuecomment-354316460
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

# Copy over binary from build
COPY --from=build /image-automation-controller /usr/local/bin/
COPY ATTRIBUTIONS.md /
Expand Down

0 comments on commit 1b8d307

Please sign in to comment.