Skip to content

Instantly share code, notes, and snippets.

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

Build it using:

docker build -f Dockerfile -t ajitid/nvim-fedora .

Run it using:

docker run -it --rm --init ajitid/nvim-fedora:latest bash
# modified form of https://github.com/casonadams/nvim-container/blob/master/Dockerfile
FROM registry.fedoraproject.org/fedora-minimal:latest
RUN microdnf install -y \
bat \
fd-find \
fzf \
git \
neovim \
ripgrep \
&& microdnf clean all \
;
RUN curl -fLo /root/.config/nvim/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment