Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +15 -6
Dockerfile
CHANGED
@@ -1,19 +1,28 @@
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
-
#
|
4 |
ENV NUMBA_DISABLE_JIT=1
|
5 |
|
6 |
-
#
|
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
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
# Run the app
|
19 |
CMD ["python", "app.py"]
|
|
|
1 |
+
# Base image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
+
# Disable numba JIT to avoid caching issues
|
5 |
ENV NUMBA_DISABLE_JIT=1
|
6 |
|
7 |
+
# Set working directory
|
8 |
WORKDIR /app
|
9 |
|
10 |
+
# Copy app files
|
|
|
11 |
COPY app.py .
|
12 |
COPY AudioGeneration.py .
|
13 |
+
COPY requirements.txt .
|
14 |
|
15 |
# Install dependencies
|
16 |
+
RUN apt-get update && apt-get install -y \
|
17 |
+
espeak \
|
18 |
+
ffmpeg \
|
19 |
+
&& rm -rf /var/lib/apt/lists/*
|
20 |
+
|
21 |
+
RUN pip install --upgrade pip
|
22 |
+
RUN pip install -r requirements.txt
|
23 |
+
|
24 |
+
# Expose port for Spaces
|
25 |
+
EXPOSE 7860
|
26 |
|
27 |
# Run the app
|
28 |
CMD ["python", "app.py"]
|