Skip to content

Commit 559933d

Browse files
feat(container): add Python pip packages and GCC build tooling
- Install python3.12-pip, python3.13-pip for pip on PATH - Install build-essential and python3.12-dev, python3.13-dev to build C extensions Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 697a7a6 commit 559933d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ RUN apt-get update \
1414
&& DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:deadsnakes/ppa \
1515
&& apt-get update \
1616
&& apt-get install --no-install-recommends -y \
17-
python3.12 python3.13 \
17+
build-essential \
18+
python3.12 python3.12-dev python3.12-pip \
19+
python3.13 python3.13-dev python3.13-pip \
1820
skopeo buildah \
1921
&& apt-get autoremove -y \
2022
&& apt-get clean \
@@ -81,7 +83,7 @@ RUN curl -sSL -o /tmp/pack.tgz \
8183

8284
# Install pre-commit
8385
# hadolint ignore=DL3013
84-
RUN pip install --no-cache-dir pre-commit
86+
RUN pip3 install --no-cache-dir pre-commit
8587

8688
# Base stage must not end as root (hadolint DL3002)
8789
USER runner

0 commit comments

Comments
 (0)