From a7be4c90d651882ad0250b04103c03c1d3ef42b5 Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sun, 25 May 2025 15:20:57 +0700 Subject: [PATCH] done --- reth.Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/reth.Dockerfile b/reth.Dockerfile index 8e261524..1487e21f 100644 --- a/reth.Dockerfile +++ b/reth.Dockerfile @@ -3,6 +3,17 @@ ARG LLVM_IMAGE=snowstep/llvm ARG LLVM_VERSION=20250514100911 FROM ${LLVM_IMAGE}:${LLVM_VERSION} as builder +# Install build dependencies and tools +RUN apt-get update && apt-get install -y \ + curl \ + git \ + libssl-dev \ + pkg-config \ + wget \ + ninja-build \ + ccache \ + && rm -rf /var/lib/apt/lists/* + # Install Rust and nightly toolchain for advanced optimizations ENV RUSTUP_HOME=/usr/local/rustup ENV CARGO_HOME=/usr/local/cargo @@ -12,16 +23,6 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ rustup toolchain install nightly && \ rustup component add rust-src --toolchain nightly -# Install additional build dependencies -RUN apt-get update && apt-get install -y \ - git \ - libssl-dev \ - pkg-config \ - wget \ - ninja-build \ - ccache \ - && rm -rf /var/lib/apt/lists/* - # Install mold linker (faster than lld) RUN wget https://github.com/rui314/mold/releases/download/v2.30.0/mold-2.30.0-x86_64-linux.tar.gz && \ tar xf mold-2.30.0-x86_64-linux.tar.gz && \