Skip to content

Instantly share code, notes, and snippets.

@laurelmay
Created March 4, 2021 02:03
Show Gist options
  • Save laurelmay/e7f2fbd1c066f8bffabbbda30f861707 to your computer and use it in GitHub Desktop.
Save laurelmay/e7f2fbd1c066f8bffabbbda30f861707 to your computer and use it in GitHub Desktop.
Failing Dockerfile with podman
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