-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
56 lines (49 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM archlinux:base
# install yay
RUN echo '[multilib]' >> /etc/pacman.conf && \
echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf && \
pacman --noconfirm -Syyu && \
pacman --noconfirm -S base-devel git && \
useradd -m -r -s /bin/bash aur && \
passwd -d aur && \
echo 'aur ALL=(ALL) ALL' > /etc/sudoers.d/aur && \
mkdir -p /home/aur/.gnupg && \
echo 'standard-resolver' > /home/aur/.gnupg/dirmngr.conf && \
chown -R aur:aur /home/aur && \
mkdir /build && \
chown -R aur:aur /build && \
cd /build && \
sudo -u aur git clone --depth 1 https://aur.archlinux.org/yay-bin.git && \
cd yay-bin && \
sudo -u aur makepkg --noconfirm -si && \
sudo -u aur yay --afterclean --removemake --save && \
pacman -Qtdq | xargs -r pacman --noconfirm -Rcns && \
rm -rf /home/aur/.cache && \
rm -rf /build
# install custom tools with yay
RUN sudo -u aur yay -Sy --noconfirm \
bat \
direnv \
dog \
exa \
fd \
fish \
fisher \
fzf \
httpie \
neovim \
net-tools \
nnn \
pgcli \
ripgrep \
tini \
tcpdump \
termshark \
tmux \
&& pacman -Qtdq | xargs -r pacman --noconfirm -Rcns \
&& rm -rf /home/aur/.cache /var/cache
RUN fish -c "fisher install franciscolourenco/done jorgebucaran/hydro PatrickF1/fzf.fish"
COPY rootfs/ /
WORKDIR /root/
RUN ln -sf /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
ENTRYPOINT ["tini", "--", "fish"]