nvim/Containerfile
Maciej Lebiest 1b4d92f8fe
Some checks failed
Build neovim image / build-neovim-arm64 (push) Failing after 7m0s
Build neovim image / update-images-manifest (push) Has been cancelled
Build neovim image / build-neovim-amd64 (push) Has been cancelled
cleaning, initial DAP setup
2024-04-03 19:27:42 +02:00

70 lines
1.4 KiB
Docker

FROM registry.fedoraproject.org/fedora-minimal
USER root
ENV LANG="en_US.UTF-8"
ENV NEOVIM_PKGS="\
wget \
unzip \
git \
neovim \
ripgrep \
fd-find \
npm \
ShellCheck \
tree-sitter-cli \
wl-clipboard \
python3-neovim"
ENV GENERAL_PKGS="\
bash-completion \
procps \
fzf \
tar"
ENV PYTHON_DEVEL_PKGS="python3 python3-pip"
ENV PIP_PKGS="debugpy"
ENV BUILD_ONLY_PKGS="python3-devel"
ENV MASON_PKGS=" \
bash-language-server \
css-lsp \
cssmodules-language-server \
dockerfile-language-server \
eslint-lsp \
html-lsp \
intelephense \
json-lsp \
lemminx \
lua-language-server \
marksman \
phpcs \
phpstan \
pyright \
python-lsp-server \
sqlls \
typescript-language-server \
yaml-language-server \
markdownlint \
ansible-language-server \
ansible-lint \
helm-ls"
COPY . /root/.config/nvim
# install system dependencies
RUN dnf5 install -y \
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \
pip install ${PIP_PKGS} && \
dnf5 remove -y ${BUILD_ONLY_PKGS} && \
dnf5 -y autoremove && \
dnf5 clean all && \
nvim --headless \
+"MasonInstall ${MASON_PKGS}" \
+qa && \
echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
ENTRYPOINT [ "/usr/bin/nvim" ]