From 70be50b0d4abba1b6ff5591c4122665818436357 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Mon, 1 Dec 2025 09:40:31 -0800 Subject: [PATCH] client: Dockerfiles: remote: root: use multi-stage A single development stage ended up not being needed. NOTE: `dfi` will still only pull the package artifact from the final image. --- .../remote/root/Dockerfile.archlinux | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/client/Dockerfiles/remote/root/Dockerfile.archlinux b/client/Dockerfiles/remote/root/Dockerfile.archlinux index 1d1fdcb..260bcc3 100644 --- a/client/Dockerfiles/remote/root/Dockerfile.archlinux +++ b/client/Dockerfiles/remote/root/Dockerfile.archlinux @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -FROM archlinux:base-devel +FROM archlinux:base-devel AS base-devel RUN pacman -Syu \ git \ @@ -78,6 +78,22 @@ RUN sed -i -e '/^ qt6-webengine$/d' PKGBUILD # Do not build root debug package RUN sed -i "s/options=(\!lto)$/options=('\!debug' '\!lto')/" PKGBUILD -RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -sci --noconfirm +# Execute build +RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -s --noconfirm + +# +# Production stage +# + +FROM archlinux:base + +COPY --from=base-devel /home/builder/root/root-*.pkg.tar.zst /root/ + +RUN pacman -Syu \ + gcc \ + --noconfirm --disable-download-timeout + +WORKDIR /root +RUN pacman -U root-*.pkg.tar.zst --noconfirm # vim: sw=2 sts=2 si ai et