Spaces:
Running
Running
Download Dockerfile from Vedang2004/prediction_api: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/Vedang2004/prediction_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Vedang2004/prediction_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Vedang2004/prediction_api/resolve/main/Dockerfile
530 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libpq-dev \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install torch==2.10.0+cpu --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Collect static files | |
| RUN python manage.py collectstatic --no-input | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "solar_project.wsgi:application"] |