Spaces:
Sleeping
Sleeping
Download Dockerfile from yassine123Z/EmissionFactor-fastAPI: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/yassine123Z/EmissionFactor-fastAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yassine123Z/EmissionFactor-fastAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yassine123Z/EmissionFactor-fastAPI/resolve/main/Dockerfile
295 Bytes
| FROM python:3.10 | |
| WORKDIR /code | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Set Hugging Face cache to a writable location | |
| ENV HF_HOME=/tmp/hf_cache | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |