Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -20,12 +20,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
20 |
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && \
|
21 |
apt-get install -y python3.10 python3.10-dev python3.10-distutils python3.10-venv
|
22 |
|
23 |
-
# Install
|
|
|
|
|
|
|
24 |
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
|
25 |
|
26 |
-
# Set Python 3.10 as default
|
27 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
|
28 |
-
update-alternatives --install /usr/bin/pip pip /usr/local/bin/
|
29 |
|
30 |
# Switch to non-root user
|
31 |
USER user
|
|
|
20 |
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && \
|
21 |
apt-get install -y python3.10 python3.10-dev python3.10-distutils python3.10-venv
|
22 |
|
23 |
+
# Install curl (and any other missing tools)
|
24 |
+
RUN apt-get update && apt-get install -y --no-install-recommends curl
|
25 |
+
|
26 |
+
# Install pip for Python 3.10 using get-pip.py
|
27 |
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
|
28 |
|
29 |
+
# Set Python 3.10 as the default and update pip alternatives.
|
30 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
|
31 |
+
update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.10 1
|
32 |
|
33 |
# Switch to non-root user
|
34 |
USER user
|