# Stage 1 FROM debian:bookworm-slim AS repo RUN apt update \ && apt install --no-install-recommends -y ca-certificates git RUN git clone --branch=master --depth=1 https://git.taler.net/docs.git # Final image FROM sphinxdoc/sphinx-latexpdf # Copy content from one container to the other WORKDIR /docs COPY --from=repo /docs . # Install dependencies RUN python3 -m pip install --no-cache-dir recommonmark # Compile /docs/* ENTRYPOINT ["make", "BUILDDIR=/output", "-C", "/docs", "html", "latexpdf"]