chore: install apt-get deps before cargo deps (#8262)

This commit is contained in:
Alexey Shekhirin
2024-05-15 10:28:21 +03:00
committed by GitHub
parent aa5c52b944
commit e7d85e11dd

View File

@ -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