Dockerfile
FROM archlinux:base-devel
WORKDIR /tmp
ENV SHELL /bin/bash
LABEL name yibo
VOLUME ["/root", "/root/repos"]
ADD .mirrorlist /etc/pacman.d/mirrorlist
RUN yes | pacman -Syu
RUN yes | pacman -S git zsh
# zsh
RUN zsh -c 'git clone https://code.aliyun.com/412244196/prezto.git "$HOME/.zprezto"' &&\
zsh -c 'setopt EXTENDED_GLOB' &&\
zsh -c 'for rcfile in "$HOME"/.zprezto/runcoms/z*; do ln -s "$rcfile" "$HOME/.${rcfile:t}"; done'
ENV SHELL /bin/zsh
# end
# basic tools
RUN yes | pacman -S neovim tree
ENV EDITOR=nvim
ENV VISUAL=nvim
# end
# cpp
RUN yes | pacman -S cmake
# end