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