fffiloni commited on
Commit
d6e6068
1 Parent(s): d7c58f8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -23,8 +23,6 @@ USER user
23
  ENV HOME=/home/user \
24
  CUDA_HOME=/usr/local/cuda \
25
  PATH=/home/user/.local/bin:$PATH \
26
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH} \
27
- LIBRARY_PATH=${CUDA_HOME}/lib64/stubs:${LIBRARY_PATH} \
28
  PYTHONPATH=$HOME/app \
29
  PYTHONUNBUFFERED=1 \
30
  GRADIO_ALLOW_FLAGGING=never \
@@ -34,6 +32,10 @@ ENV HOME=/home/user \
34
  GRADIO_SHARE=False \
35
  SYSTEM=spaces
36
 
 
 
 
 
37
  # Set the working directory to the user's home directory
38
  WORKDIR $HOME/app
39
 
@@ -49,9 +51,6 @@ RUN mkdir checkpoints
49
  # Download checkpoint files using aria2
50
  RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/Vision-CAIR/MiniGPT4-Video/resolve/main/checkpoints/video_llama_checkpoint_last.pth -d $HOME/app/checkpoints -o video_llama_checkpoint_last.pth
51
 
52
- # Set the environment variable to specify the GPU device
53
- ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
54
- ENV CUDA_VISIBLE_DEVICES=0
55
 
56
  # Run your app.py script
57
  CMD ["python", "minigpt4_video_demo.py"]
 
23
  ENV HOME=/home/user \
24
  CUDA_HOME=/usr/local/cuda \
25
  PATH=/home/user/.local/bin:$PATH \
 
 
26
  PYTHONPATH=$HOME/app \
27
  PYTHONUNBUFFERED=1 \
28
  GRADIO_ALLOW_FLAGGING=never \
 
32
  GRADIO_SHARE=False \
33
  SYSTEM=spaces
34
 
35
+ # Set the environment variable to specify the GPU device
36
+ ENV CUDA_DEVICE_ORDER=PCI_BUS_ID
37
+ ENV CUDA_VISIBLE_DEVICES=0
38
+
39
  # Set the working directory to the user's home directory
40
  WORKDIR $HOME/app
41
 
 
51
  # Download checkpoint files using aria2
52
  RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/Vision-CAIR/MiniGPT4-Video/resolve/main/checkpoints/video_llama_checkpoint_last.pth -d $HOME/app/checkpoints -o video_llama_checkpoint_last.pth
53
 
 
 
 
54
 
55
  # Run your app.py script
56
  CMD ["python", "minigpt4_video_demo.py"]