From 34251e5fbbbbc72b82a2dfdd36b147a0c6a60eb1 Mon Sep 17 00:00:00 2001 From: Maddox Werts Date: Sun, 20 Jul 2025 16:22:17 -0400 Subject: [PATCH] Optimized docker build order --- docker/rust-analyzer/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/rust-analyzer/Dockerfile b/docker/rust-analyzer/Dockerfile index ba4b3af..9efa8c4 100644 --- a/docker/rust-analyzer/Dockerfile +++ b/docker/rust-analyzer/Dockerfile @@ -13,6 +13,9 @@ RUN apt install -y wget build-essential libssl-dev pkg-config RUN wget https://sh.rustup.rs -O rust.sh RUN chmod +x rust.sh +# Installing Rust +RUN ./rust.sh -y + # Downloading Rust-Analyzer RUN wget https://github.com/rust-lang/rust-analyzer/releases/download/2025-01-13/rust-analyzer-x86_64-unknown-linux-gnu.gz -O rust-analyzer.gz RUN gunzip -c rust-analyzer.gz > /usr/local/bin/rust-analyzer @@ -24,8 +27,5 @@ RUN chmod +x /usr/local/bin/rust-analyzer RUN useradd -m rustacean USER rustacean -# Installing Rust -RUN ./rust.sh -y - ## RUNTIME ## -ENTRYPOINT ["/usr/local/bin/rust-analyzer"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/rust-analyzer"]