Spaces:
Sleeping
Sleeping
Download Dockerfile from pranit144/predict10yrs: direct link, hf CLI and curl.
- Browser
- Download file 653 Bytes
-
https://huggingface.co/spaces/pranit144/predict10yrs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pranit144/predict10yrs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pranit144/predict10yrs/resolve/main/Dockerfile
653 Bytes
| # Use Python 3.10+ to avoid NumPy version conflicts | |
| FROM python:3.10-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Upgrade pip first to avoid dependency issues | |
| RUN pip install --no-cache-dir --upgrade pip | |
| # Copy only the requirements file first for caching efficiency | |
| COPY requirements.txt . | |
| # Install dependencies (ensure `pickle` is removed from requirements.txt) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application files | |
| COPY . . | |
| # Expose the port your app runs on | |
| EXPOSE 7860 | |
| # Command to run the application using Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"] | |