oceansweep commited on
Commit
9af05d0
1 Parent(s): 6baaa47

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -32,12 +32,12 @@ ENV PYTHONUNBUFFERED=1 \
32
  SYSTEM=spaces \
33
  TRANSFORMERS_CACHE=/dev/shm \
34
  GRADIO_ANALYTICS_ENABLED=False
35
- WORKDIR /app
36
 
37
  # Set up CUDA libraries
38
  RUN export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; import torch; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__) + ":" + os.path.dirname(torch.__file__) +"/lib")'`:$LD_LIBRARY_PATH
39
 
40
- COPY ./requirements.txt /app/requirements.txt
41
 
42
  RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
43
 
@@ -45,15 +45,15 @@ RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
45
  COPY --chown=user . $HOME/app
46
 
47
  # Create necessary directories and set permissions
48
- RUN mkdir -p /app/Results/Audio_Processing /app/Results/Video_Downloads
49
 
50
- RUN chmod -R 777 /app/*
51
 
52
  RUN whoami && \
53
- echo "Permissions for /app:" && \
54
- ls -la /app && \
55
- echo "Permissions for /:" && \
56
- ls -la /
57
 
58
  CMD ["cd .app"]
59
  # Command to run the application
 
32
  SYSTEM=spaces \
33
  TRANSFORMERS_CACHE=/dev/shm \
34
  GRADIO_ANALYTICS_ENABLED=False
35
+ WORKDIR ./app
36
 
37
  # Set up CUDA libraries
38
  RUN export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; import torch; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__) + ":" + os.path.dirname(torch.__file__) +"/lib")'`:$LD_LIBRARY_PATH
39
 
40
+ COPY ./requirements.txt ./app/requirements.txt
41
 
42
  RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
43
 
 
45
  COPY --chown=user . $HOME/app
46
 
47
  # Create necessary directories and set permissions
48
+ RUN mkdir -p ./app/Results/Audio_Processing /app/Results/Video_Downloads
49
 
50
+ RUN chmod -R 777 ./app/*
51
 
52
  RUN whoami && \
53
+ echo "Permissions for ./app:" && \
54
+ ls -la ./app && \
55
+ echo "Permissions for ./:" && \
56
+ ls -la ./
57
 
58
  CMD ["cd .app"]
59
  # Command to run the application