1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 05:50:05 +08:00
SpaceVim/docker/Dockerfile

42 lines
980 B
Docker
Raw Normal View History

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 \
neovim \
curl \
2023-06-27 19:43:28 +08:00
python3-dev \
python3-pynvim \
lua5.3 \
git \
2023-06-27 19:43:28 +08:00
universal-ctags \
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
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
ENTRYPOINT nvim