From 5ef966970197b5c091995061e1abab149d18f763 Mon Sep 17 00:00:00 2001 From: Jason DeTiberus <915544+detiber@users.noreply.github.com> Date: Sun, 15 Dec 2024 10:50:14 -0500 Subject: [PATCH] ublue unwrap cli --- variants/ublue/Containerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/variants/ublue/Containerfile b/variants/ublue/Containerfile index aa81c15..31a1462 100644 --- a/variants/ublue/Containerfile +++ b/variants/ublue/Containerfile @@ -1,3 +1,6 @@ +FROM scratch AS ctx +COPY / / + # Base ublue image FROM ghcr.io/ublue-os/base-main:latest @@ -9,7 +12,13 @@ ARG lang_inputfile="en_US" ENV LANG $LANG ENV TZ $TZ -# TODO: run unwrap-cli script +# Build, cleanup, commit. +RUN \ + --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-beardy-os-latest,sharing=locked \ + --mount=type=cache,dst=/var/cache/libdnf5,id=dnf-cache-beardy-os-latest,sharing=locked \ + --mount=type=bind,from=ctx,source=/,target=/ctx \ + /ctx/scripts/unwrap-cli.sh + # TODO: add 1password # TODO: add ublue-update