webui / Dockerfile
hoainamgo's picture
Upload folder using huggingface_hub
24af2f3 verified
Raw History Blame Contribute Delete
509 Bytes
FROM python:3.10-slim
# Cài đặt ffmpeg và các công cụ cần thiết
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg curl procps && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Cài đặt python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy toàn bộ mã nguồn và video
COPY . .
# Mở cổng 7860 (cổng mặc định của Hugging Face Spaces)
EXPOSE 7860
CMD ["python", "app.py"]