From 3aed580334e5a50b7f5c2e068624cb9023d47d03 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 27 May 2022 12:49:17 +0800 Subject: [PATCH] fix(docker): fix docker entrypoint close https://github.com/SpaceVim/SpaceVim/issues/4681 --- docker/Dockerfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f47695b6d..eb548b3f0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,7 +3,15 @@ FROM debian:stable MAINTAINER Shidong Wang RUN apt-get update && \ - apt-get install -y neovim curl python3 python3-pip lua5.3 git exuberant-ctags silversearcher-ag && \ + apt-get install -y \ + neovim \ + curl \ + python3 \ + python3-pip \ + lua5.3 \ + git \ + exuberant-ctags \ + silversearcher-ag && \ apt-get clean ENV HOME /home/spacevim @@ -17,11 +25,12 @@ RUN groupdel users \ USER spacevim WORKDIR $HOME -ENV PATH "$HOME/.local/bin:${PATH}" + +ENV PYTHON3_HOST_PROG "/usr/bin/python3" RUN mkdir -p $HOME/.config $HOME/.SpaceVim.d -RUN pip install --user neovim pipenv +RUN pip install --user pynvim RUN curl https://raw.githubusercontent.com/SpaceVim/SpaceVim/master/docker/init.toml > $HOME/.SpaceVim.d/init.toml @@ -31,4 +40,4 @@ RUN nvim --headless +'call dein#install#_update([], "install", v:false)' +qall RUN rm $HOME/.SpaceVim.d/init.toml -ENTRYPOINT /usr/local/bin/nvim +ENTRYPOINT nvim