Skip to content

Commit 2c1de94

Browse files
committed
fix(python): refine file copies for non-default versions
1 parent e553562 commit 2c1de94

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/3/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ RUN set -eux; \
2020
rm -rf /var/lib/apt/lists/*
2121

2222
# Drop in Python 3.10
23-
COPY --from=py310 /usr/local/ /usr/local/
23+
COPY --from=py310 /usr/local/lib/python3.10/ /usr/local/lib/python3.10/
24+
COPY --from=py310 /usr/local/bin/ /usr/local/bin/
2425

2526
# Drop in Python 3.12
26-
COPY --from=py312 /usr/local/ /usr/local/
27+
COPY --from=py312 /usr/local/lib/python3.12/ /usr/local/lib/python3.12/
28+
COPY --from=py312 /usr/local/bin/ /usr/local/bin/
2729

2830
# Make explicit version shims available in /usr/bin
2931
RUN ln -sf /usr/local/bin/python3.10 /usr/bin/python3.10 && \

0 commit comments

Comments
 (0)