ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=24.04 |
ADD file:6df775300d76441aa33f31b22c1afce8dfe35c8ffbc14ef27c27009235b12a95 in / |
CMD ["/bin/bash"] |
ARG pandoc_version=3.6.4 |
LABEL maintainer=Albert Krewinkel <albert+pandoc@tarleb.com> |
LABEL org.pandoc.maintainer=Albert Krewinkel <albert+pandoc@tarleb.com> |
LABEL org.pandoc.author=John MacFarlane |
LABEL org.pandoc.version=3.6.4 |
ENV XDG_DATA_HOME=/usr/local/share |
WORKDIR /data |
ENTRYPOINT ["/usr/local/bin/pandoc"] |
COPY /usr/local/bin/pandoc /usr/local/bin/ # buildkit |
RUN |1 pandoc_version=3.6.4 /bin/sh -c ln -s /usr/local/bin/pandoc /usr/local/bin/pandoc-lua && ln -s /usr/local/bin/pandoc /usr/local/bin/pandoc-server && apt-get -q --no-allow-insecure-repositories update && DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends ca-certificates=\* liblua5.4-0=\* libatomic1=\* libgmp10=\* libpcre3=\* libyaml-0-2=\* zlib1g=\* && rm -rf /var/lib/apt/lists/* && mkdir -p "$XDG_DATA_HOME"/pandoc # buildkit |
COPY /usr/local/bin/pandoc-crossref /usr/local/bin/ # buildkit |
RUN |1 pandoc_version=3.6.4 /bin/sh -c apt-get -q --no-allow-insecure-repositories update && DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends librsvg2-bin=2.* && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c apt-get -q --no-allow-insecure-repositories update && DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends fontconfig gnupg gzip libfontconfig1 libfreetype6 perl tar wget xzdec && rm -rf /var/lib/apt/lists/* # buildkit |
COPY common/latex/texlive.profile /root/texlive.profile # buildkit |
COPY common/latex/install-texlive.sh /root/install-texlive.sh # buildkit |
COPY common/latex/packages.txt /root/packages.txt # buildkit |
ARG texlive_bin=/opt/texlive/texdir/bin |
ARG texlive_version=2024 |
ARG texlive_mirror_url= |
ENV PATH=/opt/texlive/texdir/bin/default:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
RUN |3 texlive_bin=/opt/texlive/texdir/bin texlive_version=2024 texlive_mirror_url= /bin/sh -c cd /root && TEXLIVE_ARCH="$(uname -m)-$(uname -s | tr '[:upper:]' '[:lower:]')" && mkdir -p ${texlive_bin} && ln -sf "${texlive_bin}/${TEXLIVE_ARCH}" "${texlive_bin}/default" && echo "binary_${TEXLIVE_ARCH} 1" >> /root/texlive.profile && ( [ -z "$texlive_version" ] || printf '-t\n%s\n"' "$texlive_version"; [ -z "$texlive_mirror_url" ] || printf '-m\n%s\n' "$texlive_mirror_url" ) | xargs /root/install-texlive.sh && sed -e 's/ *#.*$//' -e '/^ *$/d' /root/packages.txt | xargs tlmgr install && rm -f /root/texlive.profile /root/install-texlive.sh /root/packages.txt && TERM=dumb luaotfload-tool --update && chmod -R o+w /opt/texlive/texdir/texmf-var && mkdir -p ${texlive_bin} && ln -sf "${texlive_bin}/${TEXLIVE_ARCH}" "${texlive_bin}/default" # buildkit |
WORKDIR /data |
COPY common/extra/packages.txt /root/extra_packages.txt # buildkit |
COPY common/extra/requirements.txt /root/extra_requirements.txt # buildkit |
RUN /bin/sh -c apt-get -q --no-allow-insecure-repositories update && apt-get install --assume-yes --no-install-recommends python3-pip && pip3 install -r /root/extra_requirements.txt --break-system-packages && rm -f /root/extra_requirements.txt # buildkit |
RUN /bin/sh -c sed -e 's/ *#.*$//' -e '/^ *$/d' /root/extra_packages.txt | xargs tlmgr install && rm -f /root/extra_packages.txt # buildkit |
ENV XDG_DATA_HOME=/usr/local/share |
ARG PANDOC_DATA_DIR=/usr/local/share/pandoc |
ARG TEMPLATES_DIR=/usr/local/share/pandoc/templates |
RUN |2 PANDOC_DATA_DIR=/usr/local/share/pandoc TEMPLATES_DIR=/usr/local/share/pandoc/templates /bin/sh -c mkdir -p $TEMPLATES_DIR # buildkit |
ARG EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template |
ARG EISVOGEL_VERSION=v2.5.0 |
RUN |4 PANDOC_DATA_DIR=/usr/local/share/pandoc TEMPLATES_DIR=/usr/local/share/pandoc/templates EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template EISVOGEL_VERSION=v2.5.0 /bin/sh -c wget ${EISVOGEL_REPO}/refs/tags/${EISVOGEL_VERSION}/eisvogel.tex -O ${TEMPLATES_DIR}/eisvogel.latex # buildkit |
ARG LUA_FILTERS_REPO=https://github.com/pandoc/lua-filters/releases/download |
ARG LUA_FILTERS_VERSION=v2021-11-05 |
RUN |6 PANDOC_DATA_DIR=/usr/local/share/pandoc TEMPLATES_DIR=/usr/local/share/pandoc/templates EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template EISVOGEL_VERSION=v2.5.0 LUA_FILTERS_REPO=https://github.com/pandoc/lua-filters/releases/download LUA_FILTERS_VERSION=v2021-11-05 /bin/sh -c wget ${LUA_FILTERS_REPO}/${LUA_FILTERS_VERSION}/lua-filters.tar.gz && tar xzf lua-filters.tar.gz --strip-components=1 --one-top-level=$PANDOC_DATA_DIR && rm -f lua-filters.tar.gz # buildkit |
ARG TARGETARCH=amd64 |
ARG TECTONIC_REPO=https://github.com/tectonic-typesetting/tectonic/releases/download |
ARG TECTONIC_VERSION=0.15.0 |
RUN |9 PANDOC_DATA_DIR=/usr/local/share/pandoc TEMPLATES_DIR=/usr/local/share/pandoc/templates EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template EISVOGEL_VERSION=v2.5.0 LUA_FILTERS_REPO=https://github.com/pandoc/lua-filters/releases/download LUA_FILTERS_VERSION=v2021-11-05 TARGETARCH=amd64 TECTONIC_REPO=https://github.com/tectonic-typesetting/tectonic/releases/download TECTONIC_VERSION=0.15.0 /bin/sh -c set -ex;
case "$TARGETARCH" in
(amd64)
TECTONIC_ARCH='x86_64';
TECTONIC_CLIB='gnu';
;;
(arm64)
TECTONIC_ARCH='aarch64' ;
TECTONIC_CLIB='musl';
;;
(*)
printf 'unsupported target arch for tectonic: %s\n' "$TARGETARCH";
exit 1 ;
;;
esac
TECTONIC_TARBALL_FMT='tectonic-%s-%s-unknown-linux-%s.tar.gz'
TECTONIC_TARBALL="$(printf "$TECTONIC_TARBALL_FMT" \
"${TECTONIC_VERSION}" "${TECTONIC_ARCH}" "${TECTONIC_CLIB}" \
)"
wget ${TECTONIC_REPO}/tectonic%40${TECTONIC_VERSION}/${TECTONIC_TARBALL}
tar xzf ${TECTONIC_TARBALL} -C /usr/local/bin/
rm -f ${TECTONIC_TARBALL}
# buildkit |
/bin/sh -c set -ex; deluser --remove-home ubuntu; apt-get update; apt-get install --no-install-recommends --yes ghostscript inotify-tools make ; rm -rf /var/lib/apt/lists/*; tlmgr update --self; tlmgr install kpfonts lastpage latexmk twemojis ; |
COPY dir:2ce2c5e7210e371c4cb61e22c0232098790a5aeddb9889b10506e54fe8b92386 in /usr |
WORKDIR /docs |
ENTRYPOINT ["autodoc"] |
CMD ["-bw"] |
ENV PUPPETEER_CACHE_DIR=/usr/local/share/puppeteer/cache |
COPY file:1183fca0dc6462e02140e118e481f30ad55a4097e7d206e50f689a7770126ccd in /usr/local/src/autodoc/diagram.lua.patch |
/bin/sh -c set -ex; apt-get update; apt-get install --no-install-recommends --yes libasound2t64 libatk1.0-0t64 libatk-bridge2.0-0t64 libgbm1 libnss3 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2 npm patch ; rm -rf /var/lib/apt/lists/*; npm install --global @mermaid-js/mermaid-cli; wget --output-document='/usr/local/share/pandoc/filters/diagram.lua' 'https://raw.githubusercontent.com/pandoc-ext/diagram/refs/heads/main/_extensions/diagram/diagram.lua' ; patch /usr/local/share/pandoc/filters/diagram.lua < /usr/local/src/autodoc/diagram.lua.patch; rm /usr/local/src/autodoc/diagram.lua.patch; |
LABEL org.opencontainers.image.created=2025-05-06T10:35:32Z |
LABEL org.opencontainers.image.revision=b7e1f154066cd2e0c523636d7cf88bb8396e3344 |
LABEL org.opencontainers.image.source=https://github.com/ldericher/autodoc.git |
LABEL org.opencontainers.image.url=https://github.com/ldericher/autodoc |
COPY --chown=root:root deploy/pdfa /opt/pdfa # buildkit |
COPY --chown=root:root deploy/texoffice /opt/texlive/texdir/texmf-dist/tex/latex/texoffice # buildkit |
COPY --chown=root:root src/lenaisten /opt/lenaisten # buildkit |
COPY --chown=root:root src/lev-protokoll.latex src/lev-dokument.latex /usr/local/share/pandoc/templates # buildkit |
RUN /bin/sh -c set -ex; /opt/texlive/texdir/bin/default/texconfig rehash; # buildkit |