ARG PYTHON_PACKAGES="python3 py3-pip pandoc-cli" FROM harbor.pollinger.dev/dockerhub-mirror/alpine:latest AS base RUN apk add --no-cache graphviz nodejs git-lfs make FROM base AS default RUN apk add --no-cache texlive texlive-luatex RUN luaotfload-tool --no-cache FROM default AS python RUN apk add --no-cache ${PYTHON_PACKAGES} FROM default AS full RUN apk add --no-cache texlive-full RUN luaotfload-tool --no-cache FROM full AS full-python RUN apk add --no-cache ${PYTHON_PACKAGES}