Spaces:
Sleeping
Sleeping
Download Dockerfile from NeuroCheckAI/neurocheck: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/spaces/NeuroCheckAI/neurocheck/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NeuroCheckAI/neurocheck/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NeuroCheckAI/neurocheck/resolve/main/Dockerfile
792 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y gcc g++ git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN python3 build_spacy.py | |
| # /data = HuggingFace persistent storage bucket (mounted at runtime) | |
| # Everything user-related lives here and NEVER gets deleted on restart | |
| RUN mkdir -p /data/db /data/chroma /data/backups /data/sessions | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| ENV WORKERS=1 | |
| ENV SPACY_MODEL=/app/en_model | |
| ENV NEUROCHECK_DB=/data/db/neurocheck.db | |
| ENV SESSION_DIR=/data/sessions | |
| ENV CHROMA_DB_PATH=/data/chroma | |
| ENV PYTHONPATH=/app | |
| EXPOSE 7860 | |
| CMD ["python3", "-m", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860", "--app-dir", "/app"] | |