Skip to content

Commit f721788

Browse files
committed
fix(python): further tidies
1 parent 5e80406 commit f721788

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/3.11/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ ARG DEBIAN_FRONTEND=noninteractive
1212
RUN set -eux; \
1313
apt-get update; \
1414
apt-get install -y --no-install-recommends \
15-
python3.11 python3-pip python3.11-venv; \
15+
python3.11 python3.11-venv python3-pip; \
1616
apt-get clean; \
1717
rm -rf /var/lib/apt/lists/*

python/3/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ COPY --from=py310 /usr/local/bin/ /usr/local/bin/
2727
COPY --from=py312 /usr/local/lib/ /usr/local/lib/
2828
COPY --from=py312 /usr/local/bin/ /usr/local/bin/
2929

30-
# Make explicit version shims available in /usr/bin, and remove conflicting shims in /usr/local/bin
30+
# Clean up
3131
RUN set -eux; \
32+
python3.10 -m pip --no-cache-dir install --upgrade pip setuptools wheel; \
33+
python3.12 -m pip --no-cache-dir install --upgrade pip setuptools wheel; \
3234
for shim in python3.10 python3.12 pip3.10 pip3.12; do \
3335
ln -sf "/usr/local/bin/$shim" "/usr/bin/$shim"; \
3436
done; \

0 commit comments

Comments
 (0)