From 67e61bf8c129cc069829d39c7d2fc775730b1cbe Mon Sep 17 00:00:00 2001 From: Julian Pollinger Date: Sun, 30 Mar 2025 22:09:30 +0200 Subject: [PATCH] probably improve caching and build speed --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index b6fe04f..96f1859 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,18 +2,16 @@ 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 -ARG SYSTEM_PACKAGES RUN apk add --no-cache texlive texlive-luatex RUN luaotfload-tool --update -RUN apk add --no-cache ${SYSTEM_PACKAGES} -FROM default AS full -ARG SYSTEM_PACKAGES +FROM base AS full RUN apk add --no-cache texlive-full RUN luaotfload-tool --update -RUN apk add --no-cache ${SYSTEM_PACKAGES} FROM default AS python ARG PYTHON_PACKAGES