diff options
| author | pml68 <contact@pml68.me> | 2024-12-02 00:20:58 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-12-02 00:30:42 +0100 |
| commit | faaf37c95442a1b839aa0571f21b05062b426ed4 (patch) | |
| tree | dd15bfc066c6d07719564823139f0114d1fb4dc6 /Dockerfile.no-tex | |
| parent | docs: update README (diff) | |
| download | nvim-faaf37c95442a1b839aa0571f21b05062b426ed4.tar.gz | |
feat: add "no-tex" docker image
Diffstat (limited to '')
| -rw-r--r-- | Dockerfile.no-tex | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Dockerfile.no-tex b/Dockerfile.no-tex new file mode 100644 index 0000000..3342c16 --- /dev/null +++ b/Dockerfile.no-tex @@ -0,0 +1,48 @@ +FROM alpine:edge AS base +WORKDIR /root +SHELL ["/bin/sh", "-c"] + +RUN apk add --no-cache git \ + lazygit \ + neovim \ + man-pages \ + alpine-sdk \ + bash \ + eza \ + ncurses \ + util-linux-misc \ + curl \ + --update + +# install deps needed by neovim +RUN apk add --no-cache wget \ + gzip \ + neovim-doc \ + ripgrep \ + rust \ + python3 \ + openjdk21 \ + openjdk17 \ + gradle \ + go \ + dotnet8-sdk \ + clang19-extra-tools \ + nodejs \ + npm + +# pre-download lazy.nvim +RUN git clone --filter=blob:none https://github.com/folke/lazy.nvim.git --branch=stable /root/.local/share/nvim/lazy/lazy.nvim + +# copy config files +COPY .bashrc .bashrc +COPY . .config/nvim + +FROM base +SHELL ["/bin/bash", "-c"] +WORKDIR /root +RUN nvim --headless +"Lazy! sync" +qa; rm -rf /root/.cache + +# symlink the clangd executable, since it can't be installed with mason +RUN ln -sf /usr/bin/clangd /root/.local/share/nvim/mason/bin/clangd + +ENTRYPOINT ["/bin/bash"] |
