2022-05-23 21:37:58 +08:00
|
|
|
FROM debian:stable
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
MAINTAINER Shidong Wang <wsdjeg@outlook.com>
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2022-05-27 12:49:17 +08:00
|
|
|
apt-get install -y \
|
|
|
|
neovim \
|
|
|
|
curl \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
lua5.3 \
|
|
|
|
git \
|
|
|
|
exuberant-ctags \
|
|
|
|
silversearcher-ag && \
|
2022-05-23 21:32:03 +08:00
|
|
|
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
|
2022-05-27 12:49:17 +08:00
|
|
|
|
|
|
|
ENV PYTHON3_HOST_PROG "/usr/bin/python3"
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
RUN mkdir -p $HOME/.config $HOME/.SpaceVim.d
|
|
|
|
|
2022-05-27 12:49:17 +08:00
|
|
|
RUN pip install --user pynvim
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-05-27 12:49:17 +08:00
|
|
|
ENTRYPOINT nvim
|