Download Dockerfile from parthmax/falcon: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/parthmax/falcon/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/parthmax/falcon/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/parthmax/falcon/resolve/main/Dockerfile
403 Bytes
| # Base image | |
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy backend and frontend folders | |
| COPY backend/ ./backend/ | |
| COPY frontend/ ./frontend/ | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose FastAPI default port | |
| EXPOSE 7860 | |
| # Run FastAPI server | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |