Download Dockerfile from hoainamgo/webui: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/hoainamgo/webui/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hoainamgo/webui/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hoainamgo/webui/resolve/main/Dockerfile
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"] | |