nvim/Containerfile

71 lines
1.4 KiB
Text
Raw Normal View History

2024-04-03 17:27:42 +00:00
FROM registry.fedoraproject.org/fedora-minimal
2023-02-26 17:14:08 +00:00
USER root
2024-04-03 17:27:42 +00:00
ENV LANG="en_US.UTF-8"
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 \
2024-04-03 17:27:42 +00:00
python3-neovim"
2023-02-27 19:57:20 +00:00
ENV GENERAL_PKGS="\
bash-completion \
2023-03-05 19:20:19 +00:00
procps \
2024-03-05 09:19:44 +00:00
fzf \
tar"
2023-02-27 19:57:20 +00:00
2024-04-03 17:27:42 +00:00
ENV PYTHON_DEVEL_PKGS="python3 python3-pip"
ENV PIP_PKGS="debugpy"
2023-02-27 19:57:20 +00:00
ENV BUILD_ONLY_PKGS="python3-devel"
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 \
lemminx \
lua-language-server \
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 17:27:42 +00:00
ansible-lint \
2024-01-17 15:40:05 +00:00
helm-ls"
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} && \
pip install ${PIP_PKGS} && \
dnf5 remove -y ${BUILD_ONLY_PKGS} && \
dnf5 -y autoremove && \
dnf5 clean all && \
nvim --headless \
2023-02-27 19:57:20 +00:00
+"MasonInstall ${MASON_PKGS}" \
2024-04-03 17:27:42 +00:00
+qa && \
echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
2023-03-05 19:20:19 +00:00
2023-02-26 17:14:08 +00:00
ENTRYPOINT [ "/usr/bin/nvim" ]