sreepathi-ravikumar commited on
Commit
d4494e6
·
verified ·
1 Parent(s): f18e3c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -21
Dockerfile CHANGED
@@ -1,28 +1,14 @@
1
- FROM python:3.9-slim
2
-
3
- # Install system dependencies
4
- RUN apt-get update && \
5
- apt-get install -y --no-install-recommends \
6
- ffmpeg \
7
- espeak-ng \
8
- && rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /app
11
 
12
- # Install Python dependencies
 
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Application files
17
- COPY app.py tts_engine.py ./
18
-
19
- # Create temp directory
20
- RUN mkdir -p /app/temp && \
21
- chmod 777 /app/temp
22
-
23
- ENV PYTHONUNBUFFERED=1 \
24
- PORT=7860
25
-
26
- EXPOSE ${PORT}
27
 
28
- CMD ["python", "app.py"]
 
1
+ # Dockerfile
2
+ FROM python:3.10-slim
 
 
 
 
 
 
3
 
4
  WORKDIR /app
5
 
6
+ # Install necessary libraries
7
+ RUN apt update && apt install -y ffmpeg libsndfile1
8
+
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ COPY . .
 
 
 
 
 
 
 
 
 
 
13
 
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]