Last active
March 22, 2021 18:14
-
-
Save kmARC/d98b4e5252d9271e557f7a4d7a59bbb0 to your computer and use it in GitHub Desktop.
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 archlinux AS builder | |
RUN pacman -Sy --needed --noconfirm \ | |
sudo base-devel wget | |
RUN useradd builduser -m \ | |
&& passwd -d builduser \ | |
&& bash -c "printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers " | |
RUN sudo -u builduser bash -c 'mkdir -p /tmp/build' | |
RUN sudo -u builduser bash -c ' \ | |
cd /tmp/build \ | |
&& wget https://aur.archlinux.org/cgit/aur.git/snapshot/f5vpn.tar.gz \ | |
&& tar xzf f5vpn.tar.gz \ | |
&& cd f5vpn \ | |
&& makepkg -s --noconfirm \ | |
' | |
FROM archlinux | |
COPY --from=builder /tmp/build/f5vpn/*.zst . | |
RUN pacman -Sy --noconfirm \ | |
ttf-dejavu | |
RUN pacman -U --noconfirm *.zst | |
COPY skel/ /etc/skel/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment