diff options
-rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000000..1d321f03427b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Basic dependency testing setup +FROM archlinux:latest AS base + +RUN pacman -Sy archlinux-keyring --noconfirm; pacman -Syu base-devel --noconfirm +RUN useradd -m --shell=/bin/false build && usermod -L build +RUN mkdir /app; chmod 777 /app +WORKDIR /app + +FROM base AS yay + +RUN pacman -Syu wget go git --noconfirm +RUN wget "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay-git" -O PKGBUILD +USER build +RUN makepkg + +FROM base AS build + +COPY --from=yay /app/yay*.tar.xz /app/ +RUN pacman -U /app/yay*.tar.xz --noconfirm +RUN echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +USER build + +RUN yay -S soldat --noconfirm |