Skip to content

fix(docker): improve Dockerfile for cache efficiency and image size#537

Open
Patrick-Ehimen wants to merge 1 commit into
NethermindEth:mainfrom
Patrick-Ehimen:fix/improve-dockerfile
Open

fix(docker): improve Dockerfile for cache efficiency and image size#537
Patrick-Ehimen wants to merge 1 commit into
NethermindEth:mainfrom
Patrick-Ehimen:fix/improve-dockerfile

Conversation

@Patrick-Ehimen

Copy link
Copy Markdown
Contributor

Closes #351

Changes

  • Add cargo-chef planner/builder stages to cache dependency compilation separately from source
  • Pin base images by digest (rust:slim-bookworm, distroless/cc-debian13)
  • Use rust-toolchain.toml as single source of truth for the Rust toolchain version
  • Pin protobuf-compiler to exact version and clean apt lists to reduce image size
  • Add --no-install-recommends to avoid pulling unnecessary packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Dockerfile

1 participant