Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/allaman/nvim-docker

Dockerized Neovim in different flavours and architectures
https://github.com/allaman/nvim-docker

docker dockerfile dockerhub neovim nightly stable

Last synced: 9 days ago
JSON representation

Dockerized Neovim in different flavours and architectures

Awesome Lists containing this project

README

        

Nvim-Docker




base-latest


base-stable


full-latest


full-stable


License


A repo containing the source for my Neovim Docker images

- [Base](./base) - a minimal Neovim built from source on Debian (~ **50 MB** compressed -> [Dockerhub](https://hub.docker.com/r/allaman/nvim-base))
- [Full](.full) - opinionated image for my [Neovim config](https://github.com/Allaman/nvim/) (~ **300 MB** compressed -> [Dockerhub](https://hub.docker.com/r/allaman/nvim-full))

Each of the flavor is built for

- **stable** and **HEAD** Neovim
- **linux/amd64** and **linux/arm64** (no virtualization for Docker Desktop on Apple Silicone required)
- triggered **nightly**

## Why Debian as base

You could save some MB with an even more minimal distribution like Alpine. In my opinion, Debian is the sweet spot of stability, packages, and minimalism.
By using Debian as the base image, I must not make a compromise when using this image as the base for other images.

## Usage

### As base image

Use in your own Dockerfile as usual:

```Dockerfile
ARG ARCH
FROM ${ARCH}allaman/nvim-base:stable
```

### As dockerized Neovim

```sh
docker run -it --name nvim --rm --entrypoint /bin/bash nvim-base:stable
docker run -it --name nvim --rm --mount type=bind,source="$(pwd)",target=/home/nvim/work nvim-full:stable
```

### Local Building

The provided [Taskfile](./Taskfile.yml) ([Task](https://taskfile.dev/) is required) allows you to conveniently build the images locally.

Just run `task` to get an overview.