custom-containers/specialty-containers/neovim/Containerfile

27 lines
1.1 KiB
Docker

# Custom Neovim image
# Written by Wyatt J. Miller, 2023, 2024
# This image is opinionated, but you're welcome to customize as much as you like
FROM registry.fedoraproject.org/fedora-toolbox:40
# Label it right, ya know?
ENV NAME=custom_neovim_image VERSION=1.0
LABEL com.github.containers.toolbox="true" \
com.redhat.component="$NAME" \
name="$NAME" \
version="$VERSION" \
usage="Neovim image, for solely Neovim and everything that makes it run" \
summary="Wyatt's custom Neovim image" \
maintainer="Wyatt J. Miller <wyatt@wyattjmiller.com>" \
vendor="Miller Web Solutions"
# Install Neovim and what's needed for the AstroNVim distribution
RUN dnf copr enable atim/bottom -y
RUN dnf install neovim ripgrep cargo nodejs npm bottom python lua fish -y -q
RUN cargo install tree-sitter-cli
# Install lazygit (don't you know??)
RUN curl -L https://github.com/jesseduffield/lazygit/releases/download/v0.41.0/lazygit_0.41.0_Linux_x86_64.tar.gz --output lazygit_0.41.0_Linux_x86_64.tar.gz
RUN tar xvzf lazygit_0.41.0_Linux_x86_64.tar.gz
RUN cp ./lazygit /usr/local/bin/lazygit
RUN rm LICENSE README.md lazygit