Spaces:
Running
Running
Download Dockerfile from AnayShukla/fpl-solver: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/AnayShukla/fpl-solver/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnayShukla/fpl-solver/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnayShukla/fpl-solver/resolve/main/Dockerfile
480 Bytes
| # Use a lightweight Python x86 image | |
| FROM python:3.10-slim | |
| # Set the working directory inside the server | |
| WORKDIR /app | |
| # Copy your requirements first and install them | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all your Python code, CSVs, and logic into the server | |
| COPY . . | |
| # Hugging Face REQUIRES your app to run on port 7860 | |
| EXPOSE 7860 | |
| # The command to boot the server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |