Skip to content

Commit

Permalink
Revert "Revert "Remove Disable DNS""
Browse files Browse the repository at this point in the history
This reverts commit 32016bb0b0683769fefd0962ab32d67ca968ae8a.
  • Loading branch information
ruffsl authored and msz-rai committed Jun 6, 2024
1 parent 9fbb280 commit 30ac8fb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,13 @@ 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 . .

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
################################################################################
Expand Down

0 comments on commit 30ac8fb

Please sign in to comment.