Skip to content
Open
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
5 changes: 4 additions & 1 deletion Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
iproute2=6.1.0-3 \
iptables=1.8.9-2 \
libcap2-bin=1:2.66-4+deb12u2+b2 \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
# Create python -> python3 symlink so scripts using the bare `python`
# command work inside the sandbox without additional setup. (#1452)
&& ln -s /usr/bin/python3 /usr/local/bin/python
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ln -s will fail the image build if /usr/local/bin/python already exists (e.g., if the upstream base image or a future layer introduces it). Consider making this idempotent (e.g., conditional creation or forcing/replacing the link) so rebuilds remain robust while still ensuring python resolves to python3.

Suggested change
&& ln -s /usr/bin/python3 /usr/local/bin/python
&& ln -sf /usr/bin/python3 /usr/local/bin/python

Copilot uses AI. Check for mistakes.

# gosu for privilege separation (gateway vs sandbox user).
# Install from GitHub release with checksum verification instead of
Expand Down