Skip to content

Commit 683ef6e

Browse files
elchenbergaauren
authored andcommitted
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 <elchenberg@users.noreply.github.com>
1 parent c685f2f commit 683ef6e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,5 @@ RUN if ! command -v iptables-nft > /dev/null; then \
5454
fi && \
5555
/iptables-wrapper-installer.sh --no-sanity-check
5656

57-
# Since alpine image doesn't contain /etc/nsswitch.conf, the hosts in /etc/hosts (e.g. localhost)
58-
# cannot be used. So manually add /etc/nsswitch.conf to work around this issue.
59-
RUN echo "hosts: files dns" > /etc/nsswitch.conf
60-
6157
WORKDIR /root
6258
ENTRYPOINT ["/usr/local/bin/kube-router"]

0 commit comments

Comments
 (0)