FROM --platform=linux/amd64 python:3.11-slim # Set working directory WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ g++ \ curl \ git \ && rm -rf /var/lib/apt/lists/* # Install uv for faster package management RUN pip install uv # Copy dependency files COPY pyproject.toml uv.lock ./ # Install Python dependencies RUN uv sync --frozen --no-dev # Install Playwright and Chromium for PDF generation RUN uv run playwright install-deps RUN uv run playwright install chromium # Copy application code COPY . . # Create directories for agent communication RUN mkdir -p /tmp/agent_commands # Expose the port EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ CMD curl -f http://localhost:8000/health || exit 1 # Create startup script COPY <