From 16bdf5a13b058f0f03ccae9f0afef4c64f620228 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Mon, 14 Nov 2022 17:40:37 +0000 Subject: [PATCH] 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 --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 067ae1395..80dcb6769 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]