fix: replace DEB822 sources with traditional sources.list for non-free-firmware

The sed commands to modify debian.sources DEB822 format were silently
failing — firmware packages never got installed. Replace the entire
sources config with traditional sources.list that explicitly includes
non-free-firmware component.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-03-25 21:21:27 +00:00
parent 57f97b9351
commit 6813e6d506

View File

@ -202,14 +202,12 @@ FROM debian:bookworm
ENV DEBIAN_FRONTEND=noninteractive
# Enable non-free-firmware repo for hardware firmware (Realtek NIC, Intel WiFi, etc.)
# Bookworm Docker uses DEB822 format in /etc/apt/sources.list.d/debian.sources
RUN if [ -f /etc/apt/sources.list.d/debian.sources ]; then \
sed -i 's/^Components: main$/Components: main non-free-firmware/' /etc/apt/sources.list.d/debian.sources; \
elif [ -f /etc/apt/sources.list ]; then \
sed -i 's/bookworm main$/bookworm main non-free-firmware/' /etc/apt/sources.list; \
fi && \
echo "deb http://deb.debian.org/debian bookworm non-free-firmware" >> /etc/apt/sources.list
# Enable non-free-firmware repo — replace DEB822 sources with traditional format
# (DEB822 sed was silently failing, so just overwrite with known-good sources.list)
RUN echo "deb http://deb.debian.org/debian bookworm main non-free-firmware" > /etc/apt/sources.list && \
echo "deb http://deb.debian.org/debian bookworm-updates main non-free-firmware" >> /etc/apt/sources.list && \
echo "deb http://deb.debian.org/debian-security bookworm-security main non-free-firmware" >> /etc/apt/sources.list && \
rm -f /etc/apt/sources.list.d/debian.sources
# Install all packages we need including nginx, podman, tor, and openssl (for self-signed certs)
RUN apt-get update && apt-get install -y \