Created
March 4, 2021 02:03
-
-
Save laurelmay/e7f2fbd1c066f8bffabbbda30f861707 to your computer and use it in GitHub Desktop.
Failing Dockerfile with podman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/archlinux:base-devel | |
ARG PKGBUILD | |
RUN pacman -Syu --noconfirm git sudo \ | |
&& useradd -Um builduser \ | |
&& echo "builduser ALL=(ALL) NOPASSWD: ALL" | tee -a /etc/sudoers \ | |
&& mkdir /home/builduser/pkg \ | |
&& chown -R builduser:builduser /home/builduser/pkg | |
USER builduser | |
COPY $PKGBUILD /home/builduser/pkg/PKGBUILD | |
RUN git clone https://aur.archlinux.org/yay.git \ | |
&& cd yay \ | |
&& makepkg -si \ | |
&& source PKGBUILD \ | |
&& yay -Syu ${depends[@]} ${makedepends[@]} \ | |
&& cd ~/pkg \ | |
&& makepkg -si | |
ENTRYPOINT /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment