- Redesigned frontend with Outfit/Figtree typography, coral accent palette, noise texture, glassmorphism header, and staggered animations - Split monolithic index.html into modular JS (app, api, upload, batch, results, page-viewer, utils) and extracted CSS - Fixed worker.py to generate page images for Visual Page Inspector - Added Docker Compose stack (web, worker, redis, postgres) - Added batch upload, HTML report export, rate limiting, and Redis queue - Extended test suite with checker, remediation, worker, and DB tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
699 B
Text
31 lines
699 B
Text
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"]
|