Spaces:
Paused
Paused
Download Dockerfile from elmerzole/llm-api-proxy: direct link, hf CLI and curl.
- Browser
- Download file 705 Bytes
-
https://huggingface.co/spaces/elmerzole/llm-api-proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/elmerzole/llm-api-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/elmerzole/llm-api-proxy/resolve/main/Dockerfile
705 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and filter out rotator_library | |
| COPY requirements.txt . | |
| RUN grep -v -- '-e src/rotator_library' requirements.txt > temp_requirements.txt | |
| RUN pip install --no-cache-dir -r temp_requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Install rotator_library in editable mode | |
| RUN pip install --no-cache-dir -e src/rotator_library | |
| # Expose port (HF Spaces uses 7860) | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["uvicorn", "src.proxy_app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |