35 lines
1.0 KiB
Docker
35 lines
1.0 KiB
Docker
FROM archlinux:base-devel
|
|
|
|
RUN echo -e '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf
|
|
|
|
RUN pacman -Syu --noconfirm vim sudo jq pacutils git expect shellcheck vim vifm devtools bash-completion man-db man-pages ninja gnupg
|
|
|
|
RUN ln -fs /usr/share/zoneinfo/Europe/Oslo /etc/localtime
|
|
|
|
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/wheel
|
|
|
|
RUN useradd -G wheel -m build
|
|
|
|
RUN curl https://aur.archlinux.org/cgit/aur.git/snapshot/aurutils.tar.gz > /opt/aurutils.tar.gz && tar -xf /opt/aurutils.tar.gz -C /opt/
|
|
|
|
RUN chown build:build -R /opt/aurutils
|
|
|
|
USER build
|
|
|
|
WORKDIR /opt/aurutils
|
|
|
|
RUN makepkg -si --noconfirm
|
|
|
|
COPY scripts/init-aur /usr/local/bin/init-aur
|
|
COPY scripts/sync-list /usr/local/bin/sync-list
|
|
COPY scripts/entry /usr/local/bin/entry
|
|
|
|
USER build
|
|
WORKDIR /home/build
|
|
|
|
RUN git config --global user.name "Build" && git config --global user.email "build@northcode.no"
|
|
|
|
RUN mkdir /home/build/.gnupg && echo 'keyserver-options auto-key-retrieve' > /home/build/.gnupg/gpg.conf
|
|
|
|
CMD entry
|