-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (43 loc) · 1.54 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
FROM archlinux
# Start build image
RUN \
# Config pacman archlinux china packer source and keyring
pacman -Sy \
&& echo -e "" >> /etc/pacman.conf \
&& echo -e "[archlinuxcn]" >> /etc/pacman.conf \
&& echo -e "SigLevel = Optional TrustAll" >> /etc/pacman.conf \
&& echo -e "Server = https://mirrors.ustc.edu.cn/archlinuxcn/\$arch" >> /etc/pacman.conf \
&& yes | pacman -Syyu \
&& yes | pacman -S archlinuxcn-keyring \
&& pacman -Syy \
# Install common software
&& yes | pacman -S git \
&& yes | pacman -S gcc \
&& yes | pacman -S make \
# Install software for neovim
&& curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \
&& yes | pacman -S neovim \
# Clone neovim config and put to the right place
&& cd /home/ \
&& git clone https://github.com/xiaolitongxue666/NeovimConfigFile.git \
&& mkdir -p /root/.config/nvim \
&& cp /home/NeovimConfigFile/* /root/.config/nvim \
# Install software for neovim plug
&& yes | pacman -S python2 \
&& yes | pacman -S python3 \
&& yes | pacman -S python-pip \
&& yes | pacman -S python2-pip \
&& yes | pacman -S ctags \
&& python3 -m pip install pynvim \
&& pip3 install neovim \
&& pip2 install --upgrade neovim \
# Install nodejs for coc.nvim plug
&& yes | pacman -S nodejs \
&& yes | pacman -S npm \
# Install software for neovim checkhealth
# && yes | pacman -S ruby \
# && gem install neovim \
# Install neovim plug on terminal
&& nvim +'PlugInstall --sync' +qa \
# Clear all install packets
&& yes | pacman -Sc