Skip to content

Commit

Permalink
chore: install apt-get deps before cargo deps (paradigmxyz#8262)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored May 15, 2024
1 parent aa5c52b commit e7d85e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand All @@ -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

Expand Down

0 comments on commit e7d85e1

Please sign in to comment.