Spaces:
Sleeping
Sleeping
Download Dockerfile from itsLu/cerebroscan-api: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/itsLu/cerebroscan-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/itsLu/cerebroscan-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/itsLu/cerebroscan-api/resolve/main/Dockerfile
365 Bytes
| # --- Backend (Flask) --- | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy backend files | |
| COPY app.py requirements.txt README.md ./ | |
| COPY models/ ./models/ | |
| # Copy static assets (brain examples, etc.) if present | |
| COPY static/ ./static/ | |
| # Install Python deps | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV PORT=7860 | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] | |