Spaces:
Build error
Build error
Download Dockerfile from AInive/Nive-AI-Lite: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/AInive/Nive-AI-Lite/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AInive/Nive-AI-Lite/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AInive/Nive-AI-Lite/resolve/main/Dockerfile
419 Bytes
| # Chỉ định phiên bản Python | |
| FROM python:3.10 | |
| WORKDIR /code | |
| # Cài đặt thư viện phụ thuộc | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Sao chép toàn bộ mã nguồn vào Container | |
| COPY . . | |
| # Khởi chạy ứng dụng (Chỉ định app.py làm file chính) | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |