Newer
Older
FROM archlinux/base
# install alib dependencies, create build user, yay dependencies
RUN pacman -Syu --noconfirm base-devel cmake ninja python libxml2 tclap readline qt5-base graphviz jsoncpp \
git sudo go boost && \
useradd builduser -m && \
passwd -d builduser && \
printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers && \
git clone https://aur.archlinux.org/yay.git && \
chown -R builduser:builduser yay && \
cd yay && \
sudo -u builduser makepkg --noconfirm && \
pacman -U --noconfirm yay-*pkg.tar.xz
# templight
RUN sudo -u builduser yay -S --noconfirm --cleanafter templight-git && rm -fr /home/builduser/.cache
# https://github.com/mikael-s-persson/templight-tools
RUN git clone https://github.com/mikael-s-persson/templight-tools && \
cd templight-tools && \
mkdir build && cd build && \
cmake .. && make
ENV PATH="/templight-tools/build/bin:${PATH}"