jbyuki / instant.nvim

collaborative editing in Neovim using built-in capabilities
MIT License
1.29k stars 25 forks source link

Self standing server in a Docker container feature request #34

Closed Andrej-Marsic closed 1 year ago

Andrej-Marsic commented 1 year ago

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

Andrej-Marsic commented 1 year ago

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