Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -3,8 +3,10 @@ FROM python:3.9-slim
|
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
# Copy application files
|
| 9 |
COPY . /app
|
| 10 |
|
|
@@ -15,4 +17,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"]
|
|
|
|
| 3 |
|
| 4 |
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Create the correct static/audio directory with proper permissions
|
| 8 |
+
RUN mkdir -p /app/static/audio && chmod 777 /app/static/audio
|
| 9 |
+
|
| 10 |
# Copy application files
|
| 11 |
COPY . /app
|
| 12 |
|
|
|
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
# Command to run the application
|
| 20 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|