Download web/api/Dockerfile from nasa718/prism-api: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/spaces/nasa718/prism-api/resolve/main/web/api/Dockerfile
- Command line
-
hf download hf://spaces/nasa718/prism-api/web/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nasa718/prism-api/resolve/main/web/api/Dockerfile
600 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY web/api/requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY web/__init__.py ./web/__init__.py | |
| COPY web/api/ ./web/api/ | |
| COPY analysis/__init__.py ./analysis/__init__.py | |
| COPY analysis/report_variants.py ./analysis/report_variants.py | |
| # Data is NOT baked into this (public) image — it is pulled at startup from a | |
| # private HF Dataset via the HF_DATASET_REPO + HF_ACCESS_TOKEN Space secrets. | |
| ENV DATA_DIR=/app/analysis/data/processed | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "web.api.app:app", "--host", "0.0.0.0", "--port", "7860"] | |