Skip to content

Conversation

@ahmed-mekky
Copy link
Contributor

fixes #829

Copilot AI review requested due to automatic review settings December 11, 2025 21:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds official Docker image support with improved build caching using cargo-chef, addressing issue #829. The implementation uses a multi-stage build process that separates dependency compilation from the final application build, enabling better layer caching and faster rebuilds.

Key Changes:

  • Refactored Dockerfile to use cargo-chef for dependency caching with a three-stage build (planner, builder, runtime)
  • Added GitHub Actions workflow job to build and publish multi-platform Docker images (amd64/arm64) to GitHub Container Registry
  • Configured automated Docker image tagging with semantic versioning

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Dockerfile Restructured to use cargo-chef with multi-stage build pattern for improved caching; builds release binary with rustls feature and strips it before copying to minimal runtime image
.github/workflows/release.yml Added docker job that builds and pushes multi-platform images to ghcr.io with GitHub Actions cache support and semantic version tagging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hatoo hatoo merged commit 7c862a1 into hatoo:master Dec 13, 2025
23 checks passed
@hatoo
Copy link
Owner

hatoo commented Dec 13, 2025

Thank you!

@ahmed-mekky ahmed-mekky deleted the docker-img branch December 13, 2025 09:29
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.

Publish docker image

3 participants