From 8a92b4983cd10b74663f645f090b7229668acd6c Mon Sep 17 00:00:00 2001 From: Wanjohi Date: Fri, 3 Apr 2026 00:46:04 +0300 Subject: [PATCH] fix: Clean up the naming, pin the base image to latest arch base image --- build/Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 35683e86..bf5d0b06 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -17,12 +17,7 @@ # initial ─► runner ◄── all build stages # # Build: -# docker buildx build --target runner -t nestri:latest . -# -# Recommended .dockerignore: -# target/ -# .git/ -# *.md +# docker buildx build --target runtime -t nestri:latest . # # ============================================================================= @@ -31,7 +26,7 @@ # initial #****************************************************************************** # Minimal updated Arch Linux base. Every other stage inherits from here. -FROM docker.io/archlinux/archlinux:latest AS initial +FROM docker.io/archlinux/archlinux:base-20260329.0.507017 AS initial RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman/pkg \ pacman -Syu --noconfirm @@ -356,10 +351,11 @@ RUN --mount=type=cache,target=${CARGO_HOME}/registry \ # runner #****************************************************************************** # The final runtime image – kept as simple as possible. -FROM initial AS runner +FROM initial AS runtime # ---- Enable multilib for 32-bit packages ---- -RUN echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf +RUN echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" \ + >> /etc/pacman.conf # ---- Collect and install custom-built .zst packages ---- COPY --from=mesa-build /artifacts/*.zst /tmp/pkgs/