fix: Clean up the naming, pin the base image to latest arch base image

This commit is contained in:
Wanjohi
2026-04-03 00:46:04 +03:00
parent 13db20bad9
commit 8a92b4983c

View File

@@ -17,12 +17,7 @@
# initial ─► runner ◄── all build stages # initial ─► runner ◄── all build stages
# #
# Build: # Build:
# docker buildx build --target runner -t nestri:latest . # docker buildx build --target runtime -t nestri:latest .
#
# Recommended .dockerignore:
# target/
# .git/
# *.md
# #
# ============================================================================= # =============================================================================
@@ -31,7 +26,7 @@
# initial # initial
#****************************************************************************** #******************************************************************************
# Minimal updated Arch Linux base. Every other stage inherits from here. # 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 \ RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman/pkg \
pacman -Syu --noconfirm pacman -Syu --noconfirm
@@ -356,10 +351,11 @@ RUN --mount=type=cache,target=${CARGO_HOME}/registry \
# runner # runner
#****************************************************************************** #******************************************************************************
# The final runtime image kept as simple as possible. # The final runtime image kept as simple as possible.
FROM initial AS runner FROM initial AS runtime
# ---- Enable multilib for 32-bit packages ---- # ---- 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 ---- # ---- Collect and install custom-built .zst packages ----
COPY --from=mesa-build /artifacts/*.zst /tmp/pkgs/ COPY --from=mesa-build /artifacts/*.zst /tmp/pkgs/