Skip to content

Instantly share code, notes, and snippets.

@kmARC
Last active March 22, 2021 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmARC/d98b4e5252d9271e557f7a4d7a59bbb0 to your computer and use it in GitHub Desktop.
Save kmARC/d98b4e5252d9271e557f7a4d7a59bbb0 to your computer and use it in GitHub Desktop.
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