From 683ef6e3a437bd65c65dbdf44e0bfcb072c9e8e9 Mon Sep 17 00:00:00 2001 From: elchenberg Date: Wed, 10 Apr 2024 19:46:27 +0200 Subject: [PATCH] feat(Dockerfile): remove obsolete nsswitch.conf creation The nsswitch.conf file with the line "hosts: files dns" already exists in the Alpine 3.19 base image. Signed-off-by: elchenberg --- Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index eec710b415..843a0484d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,9 +54,5 @@ RUN if ! command -v iptables-nft > /dev/null; then \ fi && \ /iptables-wrapper-installer.sh --no-sanity-check -# Since alpine image doesn't contain /etc/nsswitch.conf, the hosts in /etc/hosts (e.g. localhost) -# cannot be used. So manually add /etc/nsswitch.conf to work around this issue. -RUN echo "hosts: files dns" > /etc/nsswitch.conf - WORKDIR /root ENTRYPOINT ["/usr/local/bin/kube-router"]