Spaces:
Sleeping
Sleeping
Download Dockerfile from AJAYKASU/ECMQuantAI: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/AJAYKASU/ECMQuantAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AJAYKASU/ECMQuantAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AJAYKASU/ECMQuantAI/resolve/main/Dockerfile
515 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip3 install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face Spaces serves on 7860 by default for custom Docker | |
| EXPOSE 7860 | |
| # Healthcheck | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/health || exit 1 | |
| # Run the application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |