sikeaditya commited on
Commit
e97033e
·
verified ·
1 Parent(s): 8509312

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -1,10 +1,11 @@
1
- # Base image
2
  FROM python:3.9-slim
3
 
4
  # Set the working directory
5
  WORKDIR /app
6
- RUN mkdir -p /code/static/audio && \
7
- chmod 777 /code/static/audio
 
 
8
  # Copy application files
9
  COPY . /app
10
 
@@ -15,4 +16,4 @@ RUN pip install --no-cache-dir -r requirements.txt
15
  EXPOSE 7860
16
 
17
  # Command to run the application
18
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
 
1
  FROM python:3.9-slim
2
 
3
  # Set the working directory
4
  WORKDIR /app
5
+
6
+ # Create and set permissions for the audio directory in the correct path (/app/static/audio)
7
+ RUN mkdir -p /app/static/audio && chmod 777 /app/static/audio
8
+
9
  # Copy application files
10
  COPY . /app
11
 
 
16
  EXPOSE 7860
17
 
18
  # Command to run the application
19
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]