Skip to content

Commit 76980ea

Browse files
fix(container): install pip for Python 3.12/3.13 via ensurepip
deadsnakes PPA does not provide python3.12-pip or python3.13-pip. Bootstrap pip for both interpreters using ensurepip instead. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 559933d commit 76980ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Containerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ RUN apt-get update \
1515
&& apt-get update \
1616
&& apt-get install --no-install-recommends -y \
1717
build-essential \
18-
python3.12 python3.12-dev python3.12-pip \
19-
python3.13 python3.13-dev python3.13-pip \
18+
python3.12 python3.12-dev \
19+
python3.13 python3.13-dev \
2020
skopeo buildah \
2121
&& apt-get autoremove -y \
2222
&& apt-get clean \
2323
&& rm -rf /var/lib/apt/lists/*
2424

25+
# deadsnakes PPA does not ship python3.x-pip; bootstrap pip via ensurepip
26+
RUN python3.12 -m ensurepip --upgrade \
27+
&& python3.13 -m ensurepip --upgrade
28+
2529
# Configure buildah storage for container/rootless usage
2630
RUN mkdir -p /etc/containers \
2731
&& printf '[storage]\ndriver = "vfs"\n' > /etc/containers/storage.conf

0 commit comments

Comments
 (0)