FROM python:3.11-slim # Install system dependencies for PDF processing RUN apt-get update && apt-get install -y --no-install-recommends \ tesseract-ocr \ tesseract-ocr-eng \ poppler-utils \ ghostscript \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY enterprise_pdf_checker.py . COPY pdf_remediation.py . COPY logger_config.py . COPY retry_helper.py . COPY redis_queue.py . COPY db_manager.py . COPY worker.py . # Create directories RUN mkdir -p /app/uploads /app/results /app/logs CMD ["python", "worker.py"]