# Dockerfile FROM python:3.13.7-slim ENV PYTHONUNBUFFERED=1 \ DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ tesseract-ocr \ tesseract-ocr-eng \ tesseract-ocr-deu \ ghostscript \ poppler-utils \ libreoffice \ imagemagick \ graphicsmagick \ libvips-tools \ ffmpeg \ libheif-examples \ inkscape \ calibre \ pngquant \ pandoc \ resvg \ sox \ libvips-tools \ build-essential \ pkg-config \ git \ potrace \ curl \ texlive \ jpegoptim \ texlive-latex-recommended \ texlive-fonts-recommended \ libxml2 \ texlive-xetex \ texlive-science \ libxml2-dev \ supervisor \ && rm -rf /var/lib/apt/lists/* # Set working directory inside the container WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf # Copy the rest of the app COPY . . # Expose the app port EXPOSE 8000 RUN chmod +x run.sh # Command to run when container starts #CMD ["./run.sh"] CMD ["/usr/bin/supervisord", "-n"]