From 30ac8fb42a0f8031f42200b9249cc2b425bd23d2 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Thu, 6 Jun 2024 09:48:20 -0500 Subject: [PATCH] Revert "Revert "Remove Disable DNS"" This reverts commit 32016bb0b0683769fefd0962ab32d67ca968ae8a. --- Dockerfile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3597c296..22b5409b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -91,11 +91,6 @@ FROM prepper-ros2-${WITH_ROS2} AS prepper FROM prepper AS builder ARG OptiX_INSTALL_DIR=/optix -# Disable DNS lookups -RUN cat /etc/nsswitch.conf && \ - sed -e 's#hosts:\(.*\)dns\(.*\)#hosts:\1\2#g' -i.bak /etc/nsswitch.conf && \ - cat /etc/nsswitch.conf - # Copy rest of source tree COPY . . @@ -103,10 +98,6 @@ ARG BUILD_CMD="./setup.py" RUN --mount=type=bind,from=optix,target=${OptiX_INSTALL_DIR} \ sh -c "$BUILD_CMD" -# Restore DNS lookups -RUN mv /etc/nsswitch.conf.bak /etc/nsswitch.conf && \ - cat /etc/nsswitch.conf - ################################################################################ # MARK: dancer - multi-stage for cache dancing ################################################################################