Spaces:
Sleeping
Sleeping
oceansweep
commited on
Commit
•
fa8acb7
1
Parent(s):
1e4159d
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -33,12 +33,12 @@ ENV PYTHONUNBUFFERED=1 \
|
|
33 |
TRANSFORMERS_CACHE=/dev/shm \
|
34 |
GRADIO_ANALYTICS_ENABLED=False
|
35 |
|
36 |
-
WORKDIR
|
37 |
|
38 |
# Set up CUDA libraries
|
39 |
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
|
40 |
|
41 |
-
COPY ./requirements.txt
|
42 |
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
44 |
|
@@ -46,9 +46,9 @@ RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
46 |
COPY --chown=user . $HOME/app
|
47 |
|
48 |
# Create necessary directories and set permissions
|
49 |
-
RUN mkdir -p
|
50 |
|
51 |
-
RUN chmod -R 777
|
52 |
|
53 |
RUN whoami && \
|
54 |
echo "Permissions for ./app:" && \
|
@@ -56,6 +56,6 @@ RUN whoami && \
|
|
56 |
echo "Permissions for ./:" && \
|
57 |
ls -la ./
|
58 |
|
59 |
-
CMD ["cd
|
60 |
# Command to run the application
|
61 |
CMD ["python3", "app.py"]
|
|
|
33 |
TRANSFORMERS_CACHE=/dev/shm \
|
34 |
GRADIO_ANALYTICS_ENABLED=False
|
35 |
|
36 |
+
WORKDIR /home/user/app
|
37 |
|
38 |
# Set up CUDA libraries
|
39 |
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
|
40 |
|
41 |
+
COPY ./requirements.txt /home/user/app/requirements.txt
|
42 |
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
44 |
|
|
|
46 |
COPY --chown=user . $HOME/app
|
47 |
|
48 |
# Create necessary directories and set permissions
|
49 |
+
RUN mkdir -p /home/user/app/Results/Audio_Processing /app/Results/Video_Downloads
|
50 |
|
51 |
+
RUN chmod -R 777 /home/user/app/*
|
52 |
|
53 |
RUN whoami && \
|
54 |
echo "Permissions for ./app:" && \
|
|
|
56 |
echo "Permissions for ./:" && \
|
57 |
ls -la ./
|
58 |
|
59 |
+
CMD ["cd /home/user/app"]
|
60 |
# Command to run the application
|
61 |
CMD ["python3", "app.py"]
|