Spaces:
Runtime error
Runtime error
Download Dockerfile from RASHMIKA2006/xproverse-backend: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/RASHMIKA2006/xproverse-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RASHMIKA2006/xproverse-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RASHMIKA2006/xproverse-backend/resolve/main/Dockerfile
327 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy files | |
| COPY requirements.txt . | |
| COPY app.py . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port | |
| EXPOSE 8000 | |
| # Run FastAPI app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |