Skip to content

Commit 16bdf5a

Browse files
author
Paulo Gomes
committed
Remove nsswitch.conf creation
Since 11-11-2022, the alpine:3.16 now includes that file on its base image. More information can be found at: https://git.alpinelinux.org/aports/commit/?id=348653a9ba0701e8e968b3344e72313a9ef334e4 Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
1 parent 921ebc0 commit 16bdf5a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ RUN apk add --no-cache ca-certificates tini
3939

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

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

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

0 commit comments

Comments
 (0)