Blame Raw
permissionBRICK · 9f53616a · · 24 lines (635 B)
1 contributor
1FROM python:3.12-slim
2
3RUN apt-get update && \
4 apt-get install -y --no-install-recommends pandoc calibre && \
5 rm -rf /var/lib/apt/lists/*
6
7RUN mkdir -p /app /output
8
9WORKDIR /app
10
11COPY requirements.txt /app/
12RUN pip install --no-cache-dir -r requirements.txt
13
14COPY main.py epub_builder.py generate_reference_doc.py /app/
15COPY center-v.lua /app/
16COPY pagebreak.lua /app/
17COPY epub-style.css /app/
18RUN python generate_reference_doc.py
19
20# /vault - mount your markdown source folder here (read-write for flag reset)
21# /output - mount your EPUB destination folder here
22VOLUME ["/vault", "/output"]
23
24CMD ["python", "-u", "main.py"]