2023-06-27 19:43:28 +08:00
|
|
|
FROM ubuntu:latest
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
MAINTAINER Shidong Wang <wsdjeg@outlook.com>
|
|
|
|
|
2023-06-27 19:43:28 +08:00
|
|
|
RUN apt update && \
|
|
|
|
apt install -y \
|
2022-05-27 12:49:17 +08:00
|
|
|
neovim \
|
|
|
|
curl \
|
2023-06-27 19:43:28 +08:00
|
|
|
python3-dev \
|
|
|
|
python3-pynvim \
|
2022-05-27 12:49:17 +08:00
|
|
|
lua5.3 \
|
|
|
|
git \
|
2023-06-27 19:43:28 +08:00
|
|
|
universal-ctags \
|
2022-05-27 12:49:17 +08:00
|
|
|
silversearcher-ag && \
|
2023-06-27 19:43:28 +08:00
|
|
|
apt clean
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-12-02 10:51:11 +08:00
|
|
|
RUN curl https://gitlab.com/SpaceVim/SpaceVim/-/raw/master/docker/init.toml > $HOME/.SpaceVim.d/init.toml
|
2022-05-23 21:32:03 +08:00
|
|
|
|
|
|
|
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
|