Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
#
|
|
|
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
-
# Set working directory inside the container
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
-
# Copy dependencies file and install them
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
# Command to run your app
|
| 15 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
# Dockerfile
|
| 2 |
+
|
| 3 |
FROM python:3.9
|
| 4 |
|
|
|
|
| 5 |
WORKDIR /code
|
| 6 |
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
COPY . .
|
| 11 |
+
|
| 12 |
+
# ✅ Create audio directory with write permissions
|
| 13 |
+
RUN mkdir -p /code/audio && chmod 777 /code/audio
|
| 14 |
|
|
|
|
| 15 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|