Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/allaman/nvim-docker
- Owner: Allaman
- License: mit
- Created: 2023-08-20T20:50:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-25T13:33:59.000Z (6 months ago)
- Last Synced: 2024-12-15T16:55:34.735Z (11 days ago)
- Topics: docker, dockerfile, dockerhub, neovim, nightly, stable
- Language: Dockerfile
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Nvim-Docker
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.