mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
fix: update Dockerfile to install pip for Python 3.12 using ensurepip
This commit is contained in:
parent
0b4efbbe9f
commit
50409e5fc4
1 changed files with 3 additions and 2 deletions
|
|
@ -68,8 +68,9 @@ RUN cd /tmp \
|
|||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 \
|
||||
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
|
||||
|
||||
# Ensure pip uses Python 3.12
|
||||
RUN python3.12 -m pip install --upgrade pip
|
||||
# Install pip for Python 3.12 using ensurepip (distutils removed in 3.12)
|
||||
RUN python3.12 -m ensurepip --upgrade \
|
||||
&& python3.12 -m pip install --upgrade pip
|
||||
|
||||
# Update certificates and install SSL tools
|
||||
RUN update-ca-certificates
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue