nvim/Containerfile

65 lines
1.3 KiB
Text
Raw Normal View History

2024-05-03 10:35:19 +00:00
FROM forgejo.maciej.cloud/pkg/mc-fedora-base
2024-04-03 17:27:42 +00:00
2024-05-05 19:48:28 +00:00
# required by ansible-config
ENV LANG="C.UTF-8"
ENV LC_ALL="C.UTF-8"
2024-05-05 19:48:28 +00:00
2024-04-30 08:02:25 +00:00
# libicu - for marksman linter
2023-02-27 19:57:20 +00:00
ENV NEOVIM_PKGS="\
2023-02-26 17:14:08 +00:00
wget \
unzip \
git \
neovim \
ripgrep \
fd-find \
npm \
2023-02-28 20:33:55 +00:00
ShellCheck \
2023-02-26 17:14:08 +00:00
tree-sitter-cli \
wl-clipboard \
python3-neovim \
2024-04-30 08:02:25 +00:00
ansible-config \
2024-05-02 14:07:21 +00:00
ansible \
2024-04-30 08:02:25 +00:00
libicu"
2023-02-27 19:57:20 +00:00
ENV GENERAL_PKGS="\
tar \
gcc"
2023-02-27 19:57:20 +00:00
2024-04-03 19:51:16 +00:00
ENV PYTHON_DEVEL_PKGS="python3"
2023-02-27 19:57:20 +00:00
ENV MASON_PKGS=" \
2023-02-26 17:14:08 +00:00
bash-language-server \
css-lsp \
cssmodules-language-server \
dockerfile-language-server \
eslint-lsp \
html-lsp \
intelephense \
json-lsp \
marksman \
phpcs \
phpstan \
pyright \
python-lsp-server \
sqlls \
typescript-language-server \
yaml-language-server \
2023-12-28 18:17:49 +00:00
markdownlint \
2024-01-17 15:40:05 +00:00
ansible-language-server \
2024-04-03 19:51:16 +00:00
ansible-lint \
debugpy"
2024-05-06 07:18:20 +00:00
ENV MASON_PKGS_NO_ARM="lemminx helm-ls lua-language-server"
2023-02-27 19:57:20 +00:00
COPY . /root/.config/nvim
# install system dependencies
RUN dnf5 install -y \
2023-12-28 18:17:49 +00:00
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \
dnf5 -y autoremove && \
dnf5 clean all && \
nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \
2024-05-03 10:59:44 +00:00
nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa || true
2023-03-05 19:20:19 +00:00
2023-02-26 17:14:08 +00:00
ENTRYPOINT [ "/usr/bin/nvim" ]