Spaces:
Paused
Paused
File size: 705 Bytes
52d4317 922af7d 52d4317 922af7d 52d4317 922af7d 52d4317 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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"]
|