Mynameisju commited on
Commit
2b20973
·
verified ·
1 Parent(s): e028edd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -11
Dockerfile CHANGED
@@ -1,22 +1,18 @@
1
- FROM python:3.10-slim
2
 
3
- # Cài espeak-ng ffmpeg
4
  RUN apt-get update && apt-get install -y \
5
- espeak-ng ffmpeg libespeak-ng1 \
6
- && rm -rf /var/lib/apt/lists/*
 
7
 
8
- # Thư mục làm việc
9
  WORKDIR /app
10
 
11
- # Sao chép mã
12
  COPY app.py .
13
  COPY requirements.txt .
14
 
15
- # Cài Python packages
16
- RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Cổng mặc định cho Gradio
19
  EXPOSE 7860
20
 
21
- # Chạy app
22
- CMD ["python", "app.py"]
 
1
+ FROM debian:bullseye
2
 
3
+ # Cài espeak-ng, ffmpeg, Python
4
  RUN apt-get update && apt-get install -y \
5
+ python3 python3-pip \
6
+ espeak-ng ffmpeg \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
 
9
  WORKDIR /app
10
 
 
11
  COPY app.py .
12
  COPY requirements.txt .
13
 
14
+ RUN pip3 install -r requirements.txt
 
15
 
 
16
  EXPOSE 7860
17
 
18
+ CMD ["python3", "app.py"]