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