mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
35 lines
980 B
Docker
35 lines
980 B
Docker
FROM debian:stable
|
|
|
|
MAINTAINER Shidong Wang <wsdjeg@outlook.com>
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y neovim curl python lua5.3 git exuberant-ctags silversearcher-ag && \
|
|
apt-get clean
|
|
|
|
ENV HOME /home/spacevim
|
|
|
|
RUN groupdel users \
|
|
&& groupadd -r spacevim \
|
|
&& useradd --create-home --home-dir $HOME \
|
|
-r -g spacevim \
|
|
spacevim
|
|
|
|
USER spacevim
|
|
|
|
WORKDIR $HOME
|
|
ENV PATH "$HOME/.local/bin:${PATH}"
|
|
|
|
RUN mkdir -p $HOME/.config $HOME/.SpaceVim.d
|
|
|
|
RUN pip install --user neovim pipenv
|
|
|
|
RUN curl https://raw.githubusercontent.com/SpaceVim/SpaceVim/master/docker/init.toml > $HOME/.SpaceVim.d/init.toml
|
|
|
|
RUN curl -sLf https://spacevim.org/install.sh | bash
|
|
|
|
RUN nvim --headless +'call dein#install#_update([], "install", v:false)' +qall
|
|
|
|
RUN rm $HOME/.SpaceVim.d/init.toml
|
|
|
|
ENTRYPOINT /usr/local/bin/nvim
|