Spaces:
Runtime error
Runtime error
Download Dockerfile from VietCat/ViT5BaseNode: direct link, hf CLI and curl.
- Browser
- Download file 528 Bytes
-
https://huggingface.co/spaces/VietCat/ViT5BaseNode/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/VietCat/ViT5BaseNode/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/VietCat/ViT5BaseNode/resolve/main/Dockerfile
528 Bytes
| FROM python:3.10-slim | |
| # Đặt biến môi trường cho cache (sử dụng HF_HOME thay vì TRANSFORMERS_CACHE) | |
| ENV HF_HOME=/tmp/.cache | |
| # Cài thư viện hệ thống cần thiết | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Tạo thư mục làm việc | |
| WORKDIR /app | |
| # Copy code | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Expose port mặc định HFS (7860) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |