Created
October 29, 2017 13:40
-
-
Save anonymous/f6f95c48209acd24934514f34ab38938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM base/archlinux | |
ADD dotfiles/vimrc /root/.vimrc | |
ADD dotfiles/vim /root/.dotfiles/vim | |
RUN pacman -Syu --noconfirm && \ | |
pacman -S --noconfirm \ | |
neovim \ | |
git \ | |
python2-neovim \ | |
python-neovim \ | |
xclip \ | |
xsel && \ | |
pacman -Scc --noconfirm && \ | |
mkdir -p /root/.config && \ | |
ln -s /root/.dotfiles/vim /root/.vim && \ | |
ln -s /root/.vim /root/.config/nvim && \ | |
nvim --headless +PluginInstall +qa | |
CMD /usr/bin/env nvim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUDO=sudo | |
DOTFILES=$(HOME)/.dotfiles | |
all: bindmounts build | |
bindmounts: | |
@mkdir -p dotfiles | |
@echo Bind mounting dotfiles | |
mount | grep -q "on $(PWD)/dotfiles" || sudo mount --bind "$(DOTFILES)" "$(PWD)/dotfiles" | |
build: | |
$(SUDO) -E docker build -t local/neovim . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will
nvim --headless +PluginInstall +qa
wait until PluginInstall is finished or quit immediately which results in the PluginInstall command not even started yet?