Skip to content

Conversation

@jakub-id
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 22, 2026 22:06
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

Optimizes Docker build caching for Go module downloads by copying module manifests earlier and running go mod download before copying frequently changing sources.

Changes:

  • Reordered COPY steps so go.mod/go.sum are copied before module source code to improve layer cache reuse.
  • Moved go mod download earlier in both illmock and broker Docker builds while retaining BuildKit cache mounts.

Reviewed changes

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

File Description
illmock/Dockerfile Copies illmock/go.mod + go.sum before sources and runs go mod download earlier for better caching.
broker/Dockerfile Copies broker/go.mod + go.sum before broker sources and runs go mod download earlier to avoid invalidating deps cache on source changes.

@jakub-id jakub-id merged commit a9470f4 into main Jan 22, 2026
3 checks passed
@jakub-id jakub-id deleted the docker-cache-gomods branch January 22, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants