2
0
Fork 0
archlinux-package-action/Dockerfile
Wachtl Enterprises LLC 31aeba634f Enable action to be used as a package builder
This commit adds options to enable the action to be used inside a CI
based mirror deployment. To enable this, the `pkg`,`copy_all_sources`,
`makepkg_gpg` and `mirror` options were added to the action.

Signed-off-by: Wachtl Enterprises LLC <tyrolyean@escpe.net>
2025-02-27 17:16:13 +01:00

22 lines
528 B
Docker

# Base image
FROM docker.io/library/archlinux:base-devel
# Install dependencies
RUN pacman -Syu --needed --noconfirm pacman-contrib namcap git bash procps-ng
# Setup user
RUN useradd -m builder && \
echo 'builder ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
WORKDIR /home/builder
USER builder
# Install paru
RUN git clone https://aur.archlinux.org/paru-bin.git
RUN cd paru-bin && makepkg -si --noconfirm
# Copy files
COPY LICENSE README.md /
COPY entrypoint.sh /entrypoint.sh
# Set entrypoint
ENTRYPOINT ["/entrypoint.sh"]