Spaces:
Sleeping
Sleeping
Download Dockerfile from SamOrion/gridsim-inference-api: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/SamOrion/gridsim-inference-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SamOrion/gridsim-inference-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SamOrion/gridsim-inference-api/resolve/main/Dockerfile
493 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install dependencies before copying the full code to leverage Docker cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy HF Space files | |
| COPY . /app | |
| # Copy model directories from the context (these should be provided appropriately if building locally) | |
| COPY india_models/ /app/india_models/ | |
| COPY transformer_model/ /app/transformer_model/ | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |