-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
60 lines (51 loc) · 1.2 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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 \
fd-find \
npm \
ShellCheck \
tree-sitter-cli \
wl-clipboard \
python3-neovim \
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 \
eslint-lsp \
html-lsp \
json-lsp \
marksman \
pyright \
jedi-language-server \
ruff \
sqlls \
yaml-language-server \
markdownlint \
ansible-language-server \
ansible-lint"
ENV MASON_PKGS_NO_ARM="lemminx helm-ls lua-language-server"
COPY . /root/.config/nvim
# install system dependencies
RUN dnf5 install -y \
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${BUILD_ONLY_PKGS} && \
dnf5 -y autoremove && \
dnf5 clean all && \
nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \
nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa || true
ENTRYPOINT [ "/usr/bin/nvim" ]