Download Dockerfile from mXn1/epadoms: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/mXn1/epadoms/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mXn1/epadoms/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mXn1/epadoms/resolve/main/Dockerfile
416 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY backend/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend code | |
| COPY backend/ ./ | |
| # Copy pre-built frontend (stored inside backend/frontend/dist/ in the repo) | |
| # FastAPI serves it via StaticFiles | |
| # HuggingFace Spaces requires port 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |