Skip to content

Commit a7e7b7c

Browse files
corbinlcclaude
andcommitted
Fix: remove /etc/hosts and /etc/resolv.conf writes from Dockerfile
These files are read-only during docker buildx builds — Docker manages them itself. They were only writable in the original setup because main.sh ran at container runtime, not at build time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 81f8636 commit a7e7b7c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ RUN mkdir /build \
1414
# Stage 2: the real rootfs — no build toolchain
1515
FROM debian:latest
1616

17-
RUN printf '127.0.0.1 localhost\n' > /etc/hosts && \
18-
printf 'nameserver 8.8.8.8\nnameserver 8.8.4.4\n' > /etc/resolv.conf
19-
2017
RUN printf '#!/bin/sh\nunset LD_PRELOAD\nunset LD_LIBRARY_PATH\nexport LIBGL_ALWAYS_SOFTWARE=1\n' \
2118
> /etc/profile.d/userland.sh && chmod +x /etc/profile.d/userland.sh
2219

0 commit comments

Comments
 (0)