From e7d85e11dd9a14c81c3b8e872262fa000df83bd8 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Wed, 15 May 2024 10:28:21 +0300 Subject: [PATCH] chore: install apt-get deps before cargo deps (#8262) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f1cc4d804..1dc54909f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ WORKDIR /app LABEL org.opencontainers.image.source=https://github.com/paradigmxyz/reth LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0" +# Install system dependencies +RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config + # Builds a cargo-chef plan FROM chef AS planner COPY . . @@ -24,9 +27,6 @@ ENV RUSTFLAGS "$RUSTFLAGS" ARG FEATURES="" ENV FEATURES $FEATURES -# Install system dependencies -RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config - # Builds dependencies RUN cargo chef cook --profile $BUILD_PROFILE --features "$FEATURES" --recipe-path recipe.json