Spaces:
Runtime error
Runtime error
Download Dockerfile from RohitPoreddy/OpenModelsTimeline: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/RohitPoreddy/OpenModelsTimeline/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RohitPoreddy/OpenModelsTimeline/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RohitPoreddy/OpenModelsTimeline/resolve/main/Dockerfile
460 Bytes
| # Single-container deployment: FastAPI + static SPA | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps (optional; keep minimal) | |
| RUN pip install --no-cache-dir --upgrade pip | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY app /app/app | |
| COPY static /app/static | |
| COPY data /app/data | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |