sreepathi-ravikumar commited on
Commit
5d86b96
·
verified ·
1 Parent(s): f7cb514

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -1,11 +1,19 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
 
4
 
5
- COPY . .
 
6
 
7
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
8
 
9
- EXPOSE 7860
 
 
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"]