Spaces:
Sleeping
Sleeping
Download Dockerfile from nextstepv1/nextstep-ai-api: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/nextstepv1/nextstep-ai-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nextstepv1/nextstep-ai-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nextstepv1/nextstep-ai-api/resolve/main/Dockerfile
486 Bytes
| # Gunakan Python versi 3.10 | |
| FROM python:3.10 | |
| # Atur folder kerja di dalam server | |
| WORKDIR /code | |
| # Salin file requirements dan install library | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Salin semua file model dan kodemu ke dalam server | |
| COPY . . | |
| # Beri tahu server untuk menjalankan FastAPI di port 7860 (Syarat wajib Hugging Face) | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |