docker/README.md
This Dockerfile builds neovim HEAD and installs the latest available version of SpaceVim. You might want to use this for several reasons:
Isn't Docker stateless? Won't I have to reinstall all plugins each time I launch the container?
dein#install() so all plugins are installed and frozen. Your custom configurations can be added as an additional build step using the Docker COPY command.You can build using the supplied Makefile:
make build
or call the command manually using:
docker build -t nvim -f Dockerfile .
You can run the container using:
docker run -it nvim
but that isn't terribly useful since changes made inside the container won't be visible outside. More useful is mounting the current working directory inside the container:
docker run -it -v $(pwd):/home/spacevim/src nvim
Even better is an alias dnvim which will do this automatically:
alias dnvim='docker run -it -v $(pwd):/home/spacevim/src nvim'