Delete Dockerfile
Browse files1234567891011121314151617181920212223242526272829303132333435363738FROM python:3.11-slim
# 1. Cài đặt thư viện hệ thốngRUN apt-get update && apt-get install -y \ ffmpeg git cmake build-essential espeak-ng \ && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# 2. TẢI MÃ NGUỒN LÊN TRƯỚC (Clone từ GitHub)RUN git clone https://github.com/pnnbao97/VieNeu-TTS.git .
# 3. DỌN DẸP TRIỆT ĐỂ requirements.txt# Xóa triton-windows (vì đây là Linux), xóa torch/numpy để cài bản riêngRUN sed -i '/triton-windows/d' requirements.txt && \ sed -i '/torch/d' requirements.txt && \ sed -i '/numpy/d' requirements.txt && \ sed -i '/networkx/d' requirements.txt
# 4. CÀI ĐẶT TỪNG BƯỚC AN TOÀNRUN pip install --no-cache-dir --upgrade pip# Cài Torch CPURUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu# Cài các bản thư viện tương thích Python 3.11RUN pip install --no-cache-dir "numpy<2.1.0" "networkx<3.3"# Cài các gói còn lại trong requirements.txt (sau khi đã dọn dẹp lỗi)RUN pip install --no-cache-dir -r requirements.txtRUN pip install --no-cache-dir neucodec>=0.0.4 phonemizer>=3.3.0
# 5. Cấu hình Hugging FaceENV GRADIO_SERVER_NAME="0.0.0.0"ENV GRADIO_SERVER_PORT=7860ENV PYTHONUNBUFFERED=1
EXPOSE 7860
# 6. Chạy giao diệnCMD ["python", "gradio_app.py"]DockerfileDeleted-38