Delete Dockerfile
Browse files- Dockerfile +0 -38
Dockerfile
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
FROM python:3.11-slim
|
| 2 |
-
|
| 3 |
-
# 1. Cài đặt thư viện hệ thống
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
ffmpeg git cmake build-essential espeak-ng \
|
| 6 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
-
|
| 8 |
-
WORKDIR /app
|
| 9 |
-
|
| 10 |
-
# 2. TẢI MÃ NGUỒN LÊN TRƯỚC (Clone từ GitHub)
|
| 11 |
-
RUN git clone https://github.com/pnnbao97/VieNeu-TTS.git .
|
| 12 |
-
|
| 13 |
-
# 3. DỌN DẸP TRIỆT ĐỂ requirements.txt
|
| 14 |
-
# Xóa triton-windows (vì đây là Linux), xóa torch/numpy để cài bản riêng
|
| 15 |
-
RUN sed -i '/triton-windows/d' requirements.txt && \
|
| 16 |
-
sed -i '/torch/d' requirements.txt && \
|
| 17 |
-
sed -i '/numpy/d' requirements.txt && \
|
| 18 |
-
sed -i '/networkx/d' requirements.txt
|
| 19 |
-
|
| 20 |
-
# 4. CÀI ĐẶT TỪNG BƯỚC AN TOÀN
|
| 21 |
-
RUN pip install --no-cache-dir --upgrade pip
|
| 22 |
-
# Cài Torch CPU
|
| 23 |
-
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
| 24 |
-
# Cài các bản thư viện tương thích Python 3.11
|
| 25 |
-
RUN pip install --no-cache-dir "numpy<2.1.0" "networkx<3.3"
|
| 26 |
-
# Cài các gói còn lại trong requirements.txt (sau khi đã dọn dẹp lỗi)
|
| 27 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
-
RUN pip install --no-cache-dir neucodec>=0.0.4 phonemizer>=3.3.0
|
| 29 |
-
|
| 30 |
-
# 5. Cấu hình Hugging Face
|
| 31 |
-
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 32 |
-
ENV GRADIO_SERVER_PORT=7860
|
| 33 |
-
ENV PYTHONUNBUFFERED=1
|
| 34 |
-
|
| 35 |
-
EXPOSE 7860
|
| 36 |
-
|
| 37 |
-
# 6. Chạy giao diện
|
| 38 |
-
CMD ["python", "gradio_app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|