pika-debian-bleedingedge/Dockerfile

15 lines
632 B
Docker
Raw Normal View History

2023-08-14 16:39:22 +02:00
# We just want archlinux with an aur helper already included
# Bump for rebuild on 14/08/2023 17:30 UTC +3
FROM archlinux:latest
2023-08-14 16:46:02 +02:00
RUN pacman -Syu --noconfirm
2023-08-14 17:03:34 +02:00
RUN pacman -S --needed git wget base-devel --noconfirm
2023-08-14 17:04:35 +02:00
RUN wget https://github.com/Jguer/yay/releases/download/v12.1.2/yay_12.1.2_x86_64.tar.gz
2023-08-14 17:03:34 +02:00
RUN tar -xf ./yay_12.1.2_x86_64.tar.gz
2023-08-14 17:25:29 +02:00
RUN mv ./yay_12.1.2_x86_64/yay /usr/bin/build-yay
2023-08-14 17:10:42 +02:00
# Root DANGEROUS BLAH BLAH BLAH
RUN useradd builduser -m
RUN passwd -d builduser
2023-08-14 17:22:51 +02:00
RUN printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers
2023-08-14 17:25:29 +02:00
RUN sudo -u builduser bash -c 'cd ~ && build-yay -S yay --noconfirm'
RUN rm -rfv /usr/bin/build-yay