Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +9 -8
Dockerfile
CHANGED
@@ -2,12 +2,6 @@ FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
-
# Set CUDA_HOME environment variable
|
6 |
-
ENV CUDA_HOME=/usr/local/cuda
|
7 |
-
ENV PATH=${CUDA_HOME}/bin:/home/user/.local/bin:${PATH}
|
8 |
-
ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
9 |
-
ENV LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH}
|
10 |
-
|
11 |
# Set the MKL_THREADING_LAYER environment variable to GNU
|
12 |
ENV MKL_THREADING_LAYER=GNU
|
13 |
|
@@ -25,9 +19,16 @@ RUN useradd -m -u 1000 user
|
|
25 |
# Switch to the "user" user
|
26 |
USER user
|
27 |
|
28 |
-
# Set home to the user's home directory
|
29 |
ENV HOME=/home/user \
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
# Set the environment variable to specify the GPU device
|
33 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Set the MKL_THREADING_LAYER environment variable to GNU
|
6 |
ENV MKL_THREADING_LAYER=GNU
|
7 |
|
|
|
19 |
# Switch to the "user" user
|
20 |
USER user
|
21 |
|
|
|
22 |
ENV HOME=/home/user \
|
23 |
+
PATH=/home/user/.local/bin:$PATH \
|
24 |
+
PYTHONPATH=$HOME/app \
|
25 |
+
PYTHONUNBUFFERED=1 \
|
26 |
+
GRADIO_ALLOW_FLAGGING=never \
|
27 |
+
GRADIO_NUM_PORTS=1 \
|
28 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
29 |
+
GRADIO_THEME=huggingface \
|
30 |
+
GRADIO_SHARE=False \
|
31 |
+
SYSTEM=spaces
|
32 |
|
33 |
# Set the environment variable to specify the GPU device
|
34 |
ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
|