Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -18,10 +18,11 @@ RUN apt-get update && apt-get install -y \
|
|
18 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
|
19 |
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
|
20 |
|
21 |
-
# Install pip and
|
22 |
RUN wget https://bootstrap.pypa.io/get-pip.py && \
|
23 |
python get-pip.py && \
|
24 |
-
rm get-pip.py
|
|
|
25 |
|
26 |
# Create and switch to a non-root user
|
27 |
RUN useradd -m -u 1000 user
|
|
|
18 |
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
|
19 |
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
|
20 |
|
21 |
+
# Install pip and setuptools manually
|
22 |
RUN wget https://bootstrap.pypa.io/get-pip.py && \
|
23 |
python get-pip.py && \
|
24 |
+
rm get-pip.py && \
|
25 |
+
pip install --no-cache-dir --upgrade setuptools wheel
|
26 |
|
27 |
# Create and switch to a non-root user
|
28 |
RUN useradd -m -u 1000 user
|