aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.tex
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2024-12-17 01:01:50 +0100
committerpml68 <contact@pml68.dev>2024-12-17 01:01:50 +0100
commit75d9b3c3aa29b0a95142f35de85175e89651db02 (patch)
tree0cf69b3617e3bde2fee3d09b895c71a0661e268d /Dockerfile.tex
parentfeat: remove CPPFLAGS from `.bashrc` (diff)
downloadnvim-75d9b3c3aa29b0a95142f35de85175e89651db02.tar.gz
feat: switch to rustup pkg over rust, no-tex becomes base
Diffstat (limited to 'Dockerfile.tex')
-rw-r--r--Dockerfile.tex65
1 files changed, 65 insertions, 0 deletions
diff --git a/Dockerfile.tex b/Dockerfile.tex
new file mode 100644
index 0000000..b411266
--- /dev/null
+++ b/Dockerfile.tex
@@ -0,0 +1,65 @@
+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 \
+ rustup \
+ python3 \
+ openjdk21 \
+ openjdk17 \
+ gradle \
+ go \
+ dotnet8-sdk \
+ clang19-extra-tools \
+ nodejs \
+ npm
+
+# install TeX
+RUN apk add --no-cache texlive \
+ texlive-binextra \
+ texmf-dist-fontutils \
+ texmf-dist-fontsrecommended \
+ 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
+
+RUN rustup-init -y --default-toolchain none
+RUN /root/.cargo/bin/rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,rust-src,clippy
+
+RUN echo -e "[unstable]\ngc = true" > /root/.cargo/config.toml
+
+# 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"]