Spaces:
Sleeping
Sleeping
Download Dockerfile from durgexh/IPL-predictor: direct link, hf CLI and curl.
- Browser
- Download file 595 Bytes
-
https://huggingface.co/spaces/durgexh/IPL-predictor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/durgexh/IPL-predictor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/durgexh/IPL-predictor/resolve/main/Dockerfile
595 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.10-slim | |
| # Set the working directory directly in the Hugging Face container | |
| WORKDIR /app | |
| # Copy the requirements file first to build the environment | |
| COPY requirements.txt . | |
| # Install the Python hacker packages we used | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all the HTML, CSS, JS, and Python scripts into the container | |
| COPY . . | |
| # Expose the standard port used by Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Command to run the FastAPI app via Uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |