build: accept build args for extra packages to install (#3060)

This commit is contained in:
Geoff Bourne
2024-09-07 18:42:43 -05:00
committed by GitHub
parent dd3c7a4b77
commit 222b522bc1
5 changed files with 23 additions and 4 deletions
+6 -1
View File
@@ -7,9 +7,14 @@ ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
# The following three arg/env vars get used by the platform specific "install-packages" script
ARG EXTRA_DEB_PACKAGES=""
ARG EXTRA_DNF_PACKAGES=""
ARG EXTRA_ALPINE_PACKAGES=""
ARG FORCE_INSTALL_PACKAGES=1
RUN --mount=target=/build,source=build \
TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages
TARGET=${TARGETARCH}${TARGETVARIANT} \
/build/run.sh install-packages
RUN --mount=target=/build,source=build \
/build/run.sh setup-user