Build each package in an isolated container

This commit is contained in:
Ryan Hughes committed 2026-09-08 22:49:08 -04:00
1 parent 5902ed9596
commit fc3226ff94
7 files changed
+361 -131

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# Only the build runner is under test; source-free fixtures need no Omarchy
# bootstrap, signing key, mirror, or production repository.
FROM archlinux:base-devel
RUN pacman -Syu --noconfirm git jq sudo && \
useradd -m -u 1000 builder && \
echo 'builder ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/builder && \
printf '#!/bin/bash\nexec /usr/bin/pacman --ask 4 "$@"\n' > /usr/local/bin/pacman-for-makepkg && \
chmod +x /usr/local/bin/pacman-for-makepkg && \
mkdir /src && chown builder:builder /src
USER builder
WORKDIR /src