Spaces:
Running
on
T4
Running
on
T4
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
# Use an official PyTorch image with CUDA support as the base image
|
2 |
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
3 |
|
4 |
-
# Set the CUDA_HOME environment variable
|
5 |
-
ENV CUDA_HOME=/usr/local/cuda
|
6 |
-
|
7 |
# Install Git and system libraries required for OpenGL without interactive prompts
|
8 |
ENV DEBIAN_FRONTEND=noninteractive
|
9 |
|
@@ -20,6 +17,7 @@ RUN useradd -m -u 1000 user
|
|
20 |
USER user
|
21 |
|
22 |
ENV HOME=/home/user \
|
|
|
23 |
PATH=/home/user/.local/bin:$PATH \
|
24 |
PYTHONPATH=$HOME/app \
|
25 |
PYTHONUNBUFFERED=1 \
|
@@ -65,8 +63,8 @@ RUN unzip -d $HOME/app/checkpoints/BFM $HOME/app/checkpoints/BFM.zip
|
|
65 |
RUN find $HOME/app
|
66 |
|
67 |
# Set the environment variable to specify the GPU device
|
68 |
-
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
69 |
-
ENV CUDA_VISIBLE_DEVICES=0
|
70 |
|
71 |
# Run your app.py script
|
72 |
CMD ["python", "app.py"]
|
|
|
1 |
# Use an official PyTorch image with CUDA support as the base image
|
2 |
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
3 |
|
|
|
|
|
|
|
4 |
# Install Git and system libraries required for OpenGL without interactive prompts
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
|
|
|
17 |
USER user
|
18 |
|
19 |
ENV HOME=/home/user \
|
20 |
+
CUDA_HOME=/usr/local/cuda \
|
21 |
PATH=/home/user/.local/bin:$PATH \
|
22 |
PYTHONPATH=$HOME/app \
|
23 |
PYTHONUNBUFFERED=1 \
|
|
|
63 |
RUN find $HOME/app
|
64 |
|
65 |
# Set the environment variable to specify the GPU device
|
66 |
+
#ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
67 |
+
#ENV CUDA_VISIBLE_DEVICES=0
|
68 |
|
69 |
# Run your app.py script
|
70 |
CMD ["python", "app.py"]
|