From c7fcebfe0b733e148dee835c51d792779fba6f1e Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Wed, 10 Dec 2025 12:15:57 -0800 Subject: [PATCH] client: Dockerfiles: remote: root: update multi-stage Parses out build stage into separate build target. --- client/Dockerfiles/remote/root/Dockerfile.archlinux | 6 +++--- client/Dockerfiles/remote/root/docker-compose.yml | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/Dockerfiles/remote/root/Dockerfile.archlinux b/client/Dockerfiles/remote/root/Dockerfile.archlinux index 260bcc3..229bfc3 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 AS base-devel +FROM archlinux:base-devel AS root-build RUN pacman -Syu \ git \ @@ -85,9 +85,9 @@ RUN PACKAGER="https://gitea.com/EvergreenCrypto/docker-finance" makepkg -s --noc # Production stage # -FROM archlinux:base +FROM archlinux:base AS root -COPY --from=base-devel /home/builder/root/root-*.pkg.tar.zst /root/ +COPY --from=root-build /home/builder/root/root-*.pkg.tar.zst /root/ RUN pacman -Syu \ gcc \ diff --git a/client/Dockerfiles/remote/root/docker-compose.yml b/client/Dockerfiles/remote/root/docker-compose.yml index fd0fc91..761424d 100644 --- a/client/Dockerfiles/remote/root/docker-compose.yml +++ b/client/Dockerfiles/remote/root/docker-compose.yml @@ -20,6 +20,16 @@ services: image: evergreencrypto/root:archlinux container_name: evergreencrypto_root_archlinux build: + context: . + target: root + dockerfile: Dockerfile.archlinux + + archlinux-build: + image: evergreencrypto/root:archlinux-build + container_name: evergreencrypto_root_archlinux-build + build: + context: . + target: root-build dockerfile: Dockerfile.archlinux # vim: sw=2 sts=2 si ai et