diff options
| author | pml68 <contact@pml68.me> | 2024-11-25 00:35:44 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-11-25 00:44:06 +0100 |
| commit | 9d50bd8efcc2683b5b0ac6b2a914c219ee212360 (patch) | |
| tree | 7c6ede393ecde0d6ec6d7266d26563d7e151bc8d /Dockerfile | |
| parent | feat: add java support (diff) | |
| download | nvim-9d50bd8efcc2683b5b0ac6b2a914c219ee212360.tar.gz | |
feat: add Dockerfile for building docker image
Diffstat (limited to '')
| -rw-r--r-- | Dockerfile | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..64da700 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,61 @@ +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 \ + dotnet8-sdk \ + clang19-extra-tools \ + nodejs \ + npm + +# install TeX +RUN apk add --no-cache texlive \ + texlive-binextra \ + texmf-dist-fontsextra \ + texmf-dist-fontutils \ + texmf-dist-fontsrecommended \ + texmf-dist-formatsextra \ + texmf-dist-langenglish \ + texmf-dist-langeuropean \ + texmf-dist-latexextra \ + texmf-dist-latexrecommended \ + texmf-dist-pictures \ + texmf-dist-plaingeneric + +# 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; exit 0 + +# 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 + +CMD ["/bin/bash"] |
