Spaces:
Runtime error
Runtime error
Download Dockerfile from Shriyakupp/iitm_scraper: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/Shriyakupp/iitm_scraper/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Shriyakupp/iitm_scraper/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Shriyakupp/iitm_scraper/resolve/main/Dockerfile
406 Bytes
| # Use the official Python image | |
| FROM python:3.10 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy project files | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Ensure Uvicorn is installed explicitly | |
| RUN pip install fastapi uvicorn | |
| # Expose the FastAPI port | |
| EXPOSE 7860 | |
| # Run FastAPI with Uvicorn | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] |