Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -8,6 +8,9 @@ RUN useradd -m -u 1000 user
|
|
8 |
# Copy the requirements file to the /code directory
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
|
|
|
|
|
|
11 |
# Install the Python dependencies with root and clean up cache
|
12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt && rm -rf /root/.cache
|
13 |
|
|
|
8 |
# Copy the requirements file to the /code directory
|
9 |
COPY ./requirements.txt /code/requirements.txt
|
10 |
|
11 |
+
# Install PyTorch
|
12 |
+
RUN pip install torch torchvision torchaudio
|
13 |
+
|
14 |
# Install the Python dependencies with root and clean up cache
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt && rm -rf /root/.cache
|
16 |
|