Spaces:
Paused
Paused
Download Dockerfile from abcs-noob/Uploadfiles: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/abcs-noob/Uploadfiles/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abcs-noob/Uploadfiles/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abcs-noob/Uploadfiles/resolve/main/Dockerfile
482 Bytes
| # Sử dụng Python phiên bản 3.9 | |
| FROM python:3.9 | |
| # Thiết lập thư mục làm việc trong container | |
| WORKDIR /code | |
| # Copy file requirements vào và cài đặt thư viện | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy toàn bộ code (bao gồm app.py) vào container | |
| COPY . . | |
| # Chạy FastAPI bằng Uvicorn trên cổng 7860 (Cổng bắt buộc của Hugging Face) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |