llm-api-proxy / Dockerfile
bok
update Dockerfile for HF spaces
922af7d
raw
history blame contribute delete
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"]