mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 06:50:04 +08:00
42 lines
989 B
Docker
42 lines
989 B
Docker
FROM ubuntu:latest
|
|
|
|
MAINTAINER Shidong Wang <wsdjeg@outlook.com>
|
|
|
|
RUN apt update && \
|
|
apt install -y \
|
|
neovim \
|
|
curl \
|
|
python3-dev \
|
|
python3-pynvim \
|
|
lua5.3 \
|
|
git \
|
|
universal-ctags \
|
|
silversearcher-ag && \
|
|
apt 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 PYTHON3_HOST_PROG "/usr/bin/python3"
|
|
|
|
RUN mkdir -p $HOME/.config $HOME/.SpaceVim.d
|
|
|
|
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 nvim
|