FROM python:3.11-slim WORKDIR /app # Install pandoc, wget, and Poetry (SVG support is native in pandoc/LibreOffice) RUN apt-get update \ && apt-get install -y pandoc wget \ && pip install poetry \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* COPY pyproject.toml ./ RUN poetry install --no-root COPY main.py ./ VOLUME /app/data CMD ["poetry", "run", "python", "main.py"]