Spaces:
Sleeping
Sleeping
Enhance FastAPI app with CORS support, custom documentation endpoints, and health check route
0c3111d Download Dockerfile from marcolouis/romio_explore_ai_api: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/marcolouis/romio_explore_ai_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/marcolouis/romio_explore_ai_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/marcolouis/romio_explore_ai_api/resolve/main/Dockerfile
356 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y libgomp1 && rm -rf /var/lib/apt/lists/* | |
| COPY . /app | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV PYTHONUNBUFFERED=1 | |
| # Use port 7860 explicitly (Hugging Face's default) | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |