aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2024-12-18 14:49:51 +0100
committerpml68 <contact@pml68.dev>2024-12-18 14:49:51 +0100
commit411cdaa40b5efc7524123b862df10699900206e7 (patch)
tree29715ab3241efbd4575a81c28e897ee25d204316 /Dockerfile
parentfeat: remove `--hidden` flag from telescope find_command (diff)
downloadnvim-411cdaa40b5efc7524123b862df10699900206e7.tar.gz
feat(docker): compress rust setup into single layer
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 11b692d..eda80f7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,10 +33,8 @@ RUN apk add --no-cache wget \
# 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
+# set up Rust
+RUN rustup-init -y --default-toolchain none && /root/.cargo/bin/rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,rust-src,clippy && echo -e "[unstable]\ngc = true" > /root/.cargo/config.toml
# copy config files
COPY .bashrc .bashrc