nvim/Containerfile
Maciej Lebiest d8b1b3c677
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 6m52s
Build neovim image / build-neovim-arm64 (push) Successful in 29m37s
Build neovim image / update-images-manifest (push) Successful in 15s
some cleaning
2025-05-25 19:21:46 +02:00

58 lines
1.2 KiB
Docker

FROM forgejo.maciej.cloud/pkg/mc-fedora-base
# required by ansible-config
ENV LANG="C.UTF-8"
ENV LC_ALL="C.UTF-8"
# libicu - for marksman linter
ENV NEOVIM_PKGS="\
wget \
unzip \
git \
neovim \
ripgrep \
npm \
ShellCheck \
tree-sitter-cli \
wl-clipboard \
ansible-config \
ansible \
libicu"
ENV GENERAL_PKGS="\
tar \
gcc"
ENV PYTHON_DEVEL_PKGS="python3"
ENV MASON_PKGS=" \
bash-language-server \
css-lsp \
cssmodules-language-server \
dockerfile-language-server \
html-lsp \
json-lsp \
marksman \
jedi-language-server \
ruff \
yaml-language-server \
markdownlint \
ansible-language-server \
ansible-lint \
yamlfmt \
mdformat \
shfmt"
ENV MASON_PKGS_NO_ARM="lemminx helm-ls lua-language-server"
COPY . /root/.config/nvim
# install system dependencies
RUN dnf install -y \
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \
dnf -y autoremove && \
dnf clean all && \
nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \
nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa || true
ENTRYPOINT [ "/usr/bin/nvim" ]