Skip to content

Commit

Permalink
Merge pull request #439 from pjbgf/remove-nssswitch
Browse files Browse the repository at this point in the history
Remove nsswitch.conf creation
  • Loading branch information
stefanprodan authored Nov 14, 2022
2 parents 921ebc0 + 16bdf5a commit 610fd63
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 @@ -39,10 +39,6 @@ RUN apk add --no-cache ca-certificates tini

COPY --from=builder /workspace/notification-controller /usr/local/bin/

# 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

USER 65534:65534

ENTRYPOINT [ "/sbin/tini", "--", "notification-controller" ]

0 comments on commit 610fd63

Please sign in to comment.