added base image for arch builder
All checks were successful
CI / Build arch-builder docker images (push) Successful in 15m35s

This commit is contained in:
2024-07-29 06:52:30 +08:00
parent 79cf355458
commit 505e5665fb
2 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM archlinux:latest
FROM archlinux:latest AS base
COPY mirrorlist /etc/pacman.d/mirrolist
@@ -66,6 +66,7 @@ RUN pacman -S --noconfirm --needed \
clang \
jdk21-openjdk
FROM base as rootless
RUN useradd luser -G users -u 1000 -s /bin/bash -m -d /home/luser
USER luser
WORKDIR /home/luser