Skip to content

Instantly share code, notes, and snippets.

@ajitid
Last active March 25, 2023 14:41
Show Gist options
  • Save ajitid/3d0063233c7a0aa2d96335616c89cc95 to your computer and use it in GitHub Desktop.
Save ajitid/3d0063233c7a0aa2d96335616c89cc95 to your computer and use it in GitHub Desktop.
Nvim (neovim) dockerfile using Alpine Linux

Build it using:

docker build -f Dockerfile -t ajitid/nvim .

Run it using:

docker run -it --rm --init ajitid/nvim:latest ash
FROM anatolelucet/neovim:nightly
RUN apk add curl git
RUN mkdir -p /root/.config/nvim/
RUN sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
RUN echo -en 'call plug#begin()\ncall plug#end()\n' > /root/.config/nvim/init.vim
WORKDIR /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment