summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gospodnetich <me@kylegospodneti.ch>2025-03-22 15:15:36 -0700
committerGitHub <noreply@github.com>2025-03-22 18:15:36 -0400
commited7ec5dff8b87c89223056d9f6c231577fe238b6 (patch)
tree3f0cd2b673e316f0bf741d52f598e73ef89bb81b
parent89cdbfd05ff381f19505bcd2f6a2bcfcf72bad69 (diff)
downloadAeroCore-OS-ed7ec5dff8b87c89223056d9f6c231577fe238b6.tar.gz
AeroCore-OS-ed7ec5dff8b87c89223056d9f6c231577fe238b6.zip
feat: Use bind mounts to keep final image clean (#92)
-rw-r--r--Containerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Containerfile b/Containerfile
index 80b04aa..015dfaf 100644
--- a/Containerfile
+++ b/Containerfile
@@ -15,7 +15,9 @@ FROM ghcr.io/ublue-os/bazzite:stable
COPY build.sh /tmp/build.sh
-RUN mkdir -p /var/lib/alternatives && \
+RUN --mount=type=cache,dst=/var/cache \
+ --mount=type=cache,dst=/var/log \
+ --mount=type=tmpfs,dst=/tmp \
/tmp/build.sh && \
ostree container commit