fffiloni commited on
Commit
c6998dd
·
verified ·
1 Parent(s): ae337b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -9
Dockerfile CHANGED
@@ -7,23 +7,27 @@ ENV MKL_THREADING_LAYER=GNU
7
 
8
  RUN apt-get update && apt-get install -y \
9
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
10
- build-essential cmake \
11
- g++ python3-dev
12
 
13
  RUN useradd -m -u 1000 user
14
 
15
  USER user
16
 
17
  ENV HOME=/home/user \
18
- PATH=/home/user/.local/bin:$PATH \
19
  PYTHONPATH=$HOME/app \
20
- PYTHONUNBUFFERED=1 \
21
- GRADIO_ALLOW_FLAGGING=never \
22
- GRADIO_NUM_PORTS=1 \
23
- GRADIO_SERVER_NAME=0.0.0.0 \
24
- GRADIO_THEME=huggingface \
25
  GRADIO_SHARE=False \
26
- SYSTEM=spaces
 
 
 
 
27
 
28
  # Set the working directory to the user's home directory
29
  WORKDIR $HOME/app
 
7
 
8
  RUN apt-get update && apt-get install -y \
9
  git wget libgl1-mesa-glx libglib2.0-0 ffmpeg libx264-dev \
10
+ build-essential cmake g++ python3-dev \
11
+ cuda-toolkit-11-7
12
 
13
  RUN useradd -m -u 1000 user
14
 
15
  USER user
16
 
17
  ENV HOME=/home/user \
18
+ PATH=/home/user/.local/bin:/usr/local/cuda/bin:$PATH \
19
  PYTHONPATH=$HOME/app \
20
+ PYTHONUNBUFFERED=1 \
21
+ GRADIO_ALLOW_FLAGGING=never \
22
+ GRADIO_NUM_PORTS=1 \
23
+ GRADIO_SERVER_NAME=0.0.0.0 \
24
+ GRADIO_THEME=huggingface \
25
  GRADIO_SHARE=False \
26
+ SYSTEM=spaces \
27
+ CUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
28
+ CUDA_HOME=/usr/local/cuda \
29
+ LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH \
30
+ CMAKE_PREFIX_PATH=/usr/local/cuda
31
 
32
  # Set the working directory to the user's home directory
33
  WORKDIR $HOME/app