Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
@@ -1,11 +1,19 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
|
|
|
6 |
|
7 |
-
|
|
|
|
|
|
|
8 |
|
9 |
-
|
|
|
|
|
10 |
|
|
|
11 |
CMD ["python", "app.py"]
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
+
# Set environment variable to disable numba caching
|
4 |
+
ENV NUMBA_DISABLE_JIT=1
|
5 |
|
6 |
+
# Create app directory
|
7 |
+
WORKDIR /app
|
8 |
|
9 |
+
# Copy files
|
10 |
+
COPY requirements.txt .
|
11 |
+
COPY app.py .
|
12 |
+
COPY AudioGeneration.py .
|
13 |
|
14 |
+
# Install dependencies
|
15 |
+
RUN apt-get update && apt-get install -y ffmpeg espeak-ng libespeak-ng1 && \
|
16 |
+
pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
+
# Run the app
|
19 |
CMD ["python", "app.py"]
|