Skip to content

Commit 66c4180

Browse files
committed
Use --default-pip instead of creating a symlink
1 parent d762133 commit 66c4180

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

python/3.12/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ RUN \
112112
ARG PIP_VERSION
113113

114114
RUN set -ex; \
115-
python -m ensurepip --upgrade; \
115+
python -m ensurepip --upgrade --default-pip; \
116116
pip3 install --no-cache-dir --upgrade pip=="${PIP_VERSION}"; \
117-
ln -s /usr/local/bin/pip3 /usr/local/bin/pip; \
118117
pip --version

python/3.13/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ RUN \
112112
ARG PIP_VERSION
113113

114114
RUN set -ex; \
115-
python -m ensurepip --upgrade; \
115+
python -m ensurepip --upgrade --default-pip; \
116116
pip3 install --no-cache-dir --upgrade pip=="${PIP_VERSION}"; \
117-
ln -s /usr/local/bin/pip3 /usr/local/bin/pip; \
118117
pip --version

python/3.14/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ RUN \
113113
ARG PIP_VERSION
114114

115115
RUN set -ex; \
116-
python -m ensurepip --upgrade; \
116+
python -m ensurepip --upgrade --default-pip; \
117117
pip3 install --no-cache-dir --upgrade pip=="${PIP_VERSION}"; \
118-
ln -s /usr/local/bin/pip3 /usr/local/bin/pip; \
119118
pip --version

0 commit comments

Comments
 (0)