jbyuki/instant.nvim

Self standing server in a Docker container feature request

Andrej-Marsic opened this issue · 1 comments

Hi there!
Love this initiative and it might be exactly what I'm looking for!
I wonder if there's any examples of how to spin up a docker container with just the server running in it.
Is there a way to have the server running without the nvim installation? If it's with, what would be the easiest steps to get it up and running?

My initial thoughts are:
Grab whatever image
Install nvim
Install instant.nvim
run nvim with the :InstantStartServer command

I guess I managed to do it with something along these lines:

FROM ubuntu:latest

RUN apt-get update -y && apt-get install -y \
  neovim \
  git \
  && rm -rf /var/lib/apt/lists/*
RUN mkdir -p ~/.local/share/nvim/site/pack/plugins/start/
RUN git clone https://github.com/jbyuki/instant.nvim ~/.local/share/nvim/site/pack/plugins/start/instant.nvim