Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ RUN set -eux; \
apt-get clean; \
rm -rf /var/lib/apt/lists/*

# docker-in-docker (devcontainer feature) sources /etc/os-release; "forky" is rejected.
# Align with bookworm apt pin above so Codespaces can use the CI-built image + dind.
RUN set -eux; \
for f in /usr/lib/os-release /etc/os-release; do \
[ -e "$f" ] || continue; \
target="$f"; \
[ -L "$f" ] && target=$(readlink -f "$f"); \
grep -q '^ID=debian' "$target" || continue; \
sed -i \
-e 's/^VERSION_CODENAME=.*/VERSION_CODENAME=bookworm/' \
-e 's/^VERSION_ID=.*/VERSION_ID="12"/' \
-e 's/^VERSION=.*/VERSION="12 (bookworm)"/' \
-e 's|^PRETTY_NAME=.*|PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"|' \
"$target"; \
done

RUN echo "runwhen ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

# Architecture detection for multi-arch tool installs
Expand Down
Loading