feat(docker): add Dockerfile for Arch Linux package build and CI workflow for automated packaging

This commit is contained in:
2026-01-03 21:36:33 -06:00
parent c1d177a887
commit 151b69ad50
5 changed files with 167 additions and 0 deletions

39
Dockerfile.arch-builder Normal file
View File

@@ -0,0 +1,39 @@
FROM archlinux:latest
# Install build dependencies
RUN pacman -Syu --noconfirm --needed \
base-devel \
git \
sudo \
nodejs \
pnpm \
python \
python-poetry \
opus \
opusfile \
portaudio \
espeak-ng \
nss \
atk \
at-spi2-core \
libxcomposite \
libxrandr \
libxdamage \
mesa \
alsa-lib \
libx11
# Create a non-root user for makepkg
RUN useradd -m build && \
echo "build ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/build
# Set up build directory
USER build
WORKDIR /home/build/project
# Copy packaging files
COPY --chown=build:build packaging/arch /home/build/project/packaging/arch
# Default command to build the package
CMD ["/bin/bash", "-c", "cd packaging/arch && makepkg -s --noconfirm"]