-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharch-linux.Dockerfile
More file actions
executable file
·101 lines (83 loc) · 2.89 KB
/
arch-linux.Dockerfile
File metadata and controls
executable file
·101 lines (83 loc) · 2.89 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
FROM archlinux:base-devel
LABEL org.label-schema.name="vladdoster/dotfiles"
LABEL org.opencontainers.image.title="dotfiles"
LABEL org.opencontainers.image.source="http://dotfiles.vdoster.com/"
LABEL org.opencontainers.image.description="Containerized dotfiles environment"
ARG USER
ENV USER ${USER:-dotfiles}
ENV HOME /home/${USER}
ENV CLICOLOR 1
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm-256color
ENV \
UID="1000" \
GID="1000" \
UNAME="$USER" \
SHELL="/bin/zsh"
RUN pacman -Syu --noprogressbar --noconfirm --needed \
cmake clang unzip ninja git curl wget openssh zsh reflector sudo \
&& reflector -p https -c us --score 20 --connection-timeout 1 --sort rate --save /etc/pacman.d/mirrorlist \
&& wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem \
-o /usr/share/ca-certificates/trust-source/rds-combined-ca-bundle.pem \
&& update-ca-trust
RUN sed -i '/en_US.UTF-8 UTF-8/s/^#//g' /etc/locale.gen \
&& locale-gen \
&& pacman -Sy --noprogressbar --noconfirm --needed archlinux-keyring \
&& pacman -Scc \
&& rm -Rf /etc/pacman.d/gnupg \
&& pacman-key --init \
&& pacman-key --populate archlinux
RUN useradd \
--create-home \
--gid root --groups wheel \
--home-dir ${HOME} \
--shell "$(which zsh)" \
--uid 1001 \
${USER} \
&& echo "${USER} ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers \
&& passwd --delete ${USER} \
&& chown --recursive ${USER} ${HOME}
USER $USER
WORKDIR $HOME
RUN git clone --depth 1 -- https://aur.archlinux.org/yay.git \
&& cd yay \
&& makepkg -si --noprogressbar --noconfirm \
&& cd - \
&& rm --force --recursive -- yay
RUN yay -Syu --noprogressbar --noconfirm --needed \
acl autoconf automake \
bzip2 \
ca-certificates cmake cpanminus curl \
git-delta dialog \
exa \
figlet file fzf \
gawk gcc gettext git gnupg gosu \
iproute2 \
jq \
less libtool luajit luarocks \
make man-db meson \
ncurses neovim npm \
patch pkg-config python3 perl \
ripgrep ruby \
stow subversion \
tar texinfo tree tzdata \
unzip \
wget \
xz \
zsh
# I don't know why I have to set this again, but I do...
RUN sudo sed -i '/en_US.UTF-8 UTF-8/s/^#//g' /etc/locale.gen \
&& sudo locale-gen
# RUN git clone --depth 1 --quiet https://github.com/neovim/neovim \
# && make --directory=neovim -j16 --quiet --silent \
# && sudo make --directory=neovim -j16 --quiet --silent install \
# && sudo rm -rf neovim
# COPY --chown=${USER}:1001 . ${HOME}/.config/dotfiles/
RUN mkdir -p $HOME/.config \
&& git clone --quiet -- https://github.com/vladdoster/dotfiles $HOME/.config/dotfiles
# COPY --chown=${USER}:1001 . ${HOME}/.config/dotfiles/
RUN zsh --interactive --login -c "make --directory=$HOME/.config/dotfiles --jobs=1 install neovim" \
&& zsh --interactive --login -c -- '@zinit-scheduler burst'
ENV TERM="xterm-256color"
CMD ["zsh","--login","--interactive"]
# vim: syn=dockerfile:ft=dockerfile:fo=croql:sw=2:sts=2: