Download Dockerfile from vanhuudan/SAIF: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/spaces/vanhuudan/SAIF/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vanhuudan/SAIF/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vanhuudan/SAIF/resolve/main/Dockerfile
388 Bytes
| # Sử dụng image chính thức từ Hugging Face | |
| FROM python:3.10-slim | |
| # Cài đặt hệ thống và Python packages | |
| RUN apt-get update && apt-get install -y git | |
| # Tạo thư mục app | |
| WORKDIR /app | |
| # Copy tất cả file sang Docker container | |
| COPY . . | |
| # Cài requirements | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Chạy app Gradio | |
| CMD ["python", "saifguard_demo.py"] | |