Spaces:
Sleeping
Sleeping
Download Dockerfile from SagarAtHf/flykite-model-backend: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/SagarAtHf/flykite-model-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SagarAtHf/flykite-model-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SagarAtHf/flykite-model-backend/resolve/main/Dockerfile
428 Bytes
| FROM python:3.10-slim | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| # Grant full container workspace access permissions | |
| RUN chmod -R 777 /code | |
| # Hugging Face Docker Spaces run strictly on port 7860 | |
| #CMD ["uvicorn", "main.py", "--host", "0.0.0.0", "--port", "7860"] | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |