Spaces:
Sleeping
Sleeping
Download Dockerfile from Rachel0619/PickLLM: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/Rachel0619/PickLLM/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Rachel0619/PickLLM/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Rachel0619/PickLLM/resolve/main/Dockerfile
590 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Expose port 7860 (Hugging Face Spaces default) | |
| EXPOSE 7860 | |
| # Run the application with gunicorn | |
| # Reduced workers to 2 and increased timeout for model loading | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "300", "--preload", "app:app"] | |