Spaces:
Paused
Paused
Commit
·
106eed9
1
Parent(s):
e4b733b
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -10,20 +10,21 @@ RUN apt install software-properties-common -y
|
|
| 10 |
|
| 11 |
RUN add-apt-repository ppa:deadsnakes/ppa
|
| 12 |
|
| 13 |
-
RUN apt install -y python3.10 python3.10-distutils
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
RUN apt-get install -y git-all
|
| 16 |
-
|
| 17 |
COPY ./requirements.txt /code/requirements.txt
|
| 18 |
|
| 19 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 20 |
|
| 21 |
RUN useradd -m -u 1000 user
|
| 22 |
-
|
| 23 |
USER user
|
| 24 |
-
|
| 25 |
ENV HOME=/home/user \
|
| 26 |
-
|
| 27 |
|
| 28 |
ENV CUDA_VISIBLE_DEVICES=0,1,2
|
| 29 |
|
|
|
|
| 10 |
|
| 11 |
RUN add-apt-repository ppa:deadsnakes/ppa
|
| 12 |
|
| 13 |
+
RUN apt install -y python3.10 python3.10-distutils
|
| 14 |
+
|
| 15 |
+
# Install pip 23.1.2
|
| 16 |
+
RUN python3.10 -m pip install --no-cache-dir --upgrade pip==23.1.2
|
| 17 |
|
| 18 |
RUN apt-get install -y git-all
|
| 19 |
+
|
| 20 |
COPY ./requirements.txt /code/requirements.txt
|
| 21 |
|
| 22 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 23 |
|
| 24 |
RUN useradd -m -u 1000 user
|
|
|
|
| 25 |
USER user
|
|
|
|
| 26 |
ENV HOME=/home/user \
|
| 27 |
+
PATH=/home/user/.local/bin:$PATH
|
| 28 |
|
| 29 |
ENV CUDA_VISIBLE_DEVICES=0,1,2
|
| 30 |
|