Skip to content

Commit

Permalink
feat(Dockerfile): remove obsolete nsswitch.conf creation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elchenberg authored and aauren committed Apr 22, 2024
1 parent c685f2f commit 683ef6e
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 @@ -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"]

0 comments on commit 683ef6e

Please sign in to comment.