Repository navigation
fix(base-image): drop ppa:deadsnakes by switching to python:3.11-slim-bookworm (#658) - #810
Merged
Merged
Conversation
…n:3.11-slim-bookworm (#658) The agent base Dockerfile depended on ppa:deadsnakes/ppa for Python 3.11. Launchpad PPAs have no SLA — ppa.launchpadcontent.net has been unreachable for multi-day stretches, blocking docker build of the agent base image. The #649 _kill_orphan_pipe_writers timeout fix was stranded on platform containers for 3+ days because the PPA outage prevented the agent image from being rebuilt. Switch the base from `ubuntu:22.04` to `python:3.11-slim-bookworm`, which ships Python 3.11 prebuilt and removes the PPA dependency entirely. This matches Option A in the issue's suggested-fix list. Collateral edits: - Drop `software-properties-common` (no PPAs to add). - Drop the `python3.11 python3.11-venv python3.11-dev python3-pip` apt install + `update-alternatives` block (Python is in the base image at /usr/local/bin/python3, with pip bundled). - Point the docker-ce-cli apt repo at linux/debian instead of linux/ubuntu (lsb_release -cs is now `bookworm`). - Add `--no-install-recommends` to the apt installs to keep image size down on the slimmer base. - Add `rm -rf /var/lib/apt/lists/*` to the nodejs and docker-ce-cli RUN steps (the existing first RUN already did this). ## Verification `docker build -f docker/base-image/Dockerfile docker/base-image/` succeeds end-to-end. Smoke-tested the resulting image: - python3 --version → Python 3.11.15 - python3 -m pip --version → pip 26.1.1 - fastapi, uvicorn, httpx, pydantic, pyyaml, rich, cryptography all import - node --version → v20.20.2 - /usr/local/go/bin/go version → go1.23.4 linux/amd64 - docker --version → Docker version 29.4.3 - claude --version → 2.1.139 (Claude Code) - gemini --version → 0.41.2 - jq, sudo, ssh, etc. all present - container runs as `developer` (uid 1000), WORKDIR /home/developer Relates to #658. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
vybe
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The agent base Dockerfile depended on
ppa:deadsnakes/ppafor Python 3.11.Launchpad PPAs have no SLA —
ppa.launchpadcontent.nethas been unreachablefor multi-day stretches, blocking
docker buildof the agent base image.The #649
_kill_orphan_pipe_writerstimeout fix was stranded on platformcontainers for 3+ days because the PPA outage prevented the agent image
from being rebuilt.
Switch from
ubuntu:22.04+ deadsnakes topython:3.11-slim-bookworm,which ships Python 3.11 prebuilt and removes the PPA dependency entirely
(Option A in the issue's suggested-fix list).
Changes
ubuntu:22.04→python:3.11-slim-bookwormsoftware-properties-common,add-apt-repository ppa:deadsnakes/ppa,apt-get install python3.11 python3.11-venv python3.11-dev python3-pip,update-alternatives— all subsumed by the base image.linux/ubuntu→linux/debian.--no-install-recommends+ matchingrm -rf /var/lib/apt/lists/*on the package-installing RUN steps (smaller image, faster builds).
Verification
docker build -f docker/base-image/Dockerfile docker/base-image/succeedsend-to-end on a clean docker. Smoke-tested the resulting image:
python3 --versionPython 3.11.15python3 -m pip --versionpip 26.1.1import fastapi, uvicorn, httpx, pydantic, yaml, rich, cryptographynode --versionv20.20.2go version(/usr/local/go/bin/go)go1.23.4 linux/amd64docker --versionDocker version 29.4.3claude --version2.1.139 (Claude Code)gemini --version0.41.2jq,sudo,ssh, container userdeveloper(uid 1000), WORKDIR/home/developerTest plan
docker buildfromdocker/base-image/Dockerfile— succeeds.apt-get installubuntu-only packages, for example).Relates to #658.
🤖 Generated with Claude Code