-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM archlinux/archlinux
WORKDIR /opt
RUN echo 'Server = http://mirror.one.com/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist && \
yes | pacman -Syyu && \
pacman --noconfirm -S base-devel wget sudo vi && \
useradd -m docker && echo "docker:docker" | chpasswd && \
chown docker:docker /opt && \
echo "docker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
sudo -u docker bash -c "\
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yay-bin.tar.gz && \
tar xf yay-bin.tar.gz && \
(cd yay-bin && yes | makepkg -s --skippgpcheck) && \
(cd yay-bin && sudo pacman --noconfirm -U *.pkg.tar*) && \
yay --noconfirm -S asp \
"
USER docker
# Ready to build and install aur packages on a clean machine
CMD /bin/bash