Skip to content

Conversation

@jakub-id
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 22, 2026 23:17
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 optimizes Docker build performance by adding Go module cache mounts to the build steps in both the broker and illmock Dockerfiles. Previously, only the build cache (/root/.cache/go-build) was mounted during compilation, but now the module cache (/go/pkg/mod) is also mounted, allowing Go to reuse cached module artifacts during the build phase.

Changes:

  • Add /go/pkg/mod cache mount to build steps in both Dockerfiles
  • Update comment in broker/Dockerfile to reflect that both caches are now reused

Reviewed changes

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

File Description
illmock/Dockerfile Add module cache mount to the go build command for the illmock binary
broker/Dockerfile Add module cache mount to both go build commands (broker and archive binaries) and update comment to indicate both caches are reused

@jakub-id jakub-id merged commit f9cd19b into main Jan 22, 2026
9 checks passed
@jakub-id jakub-id deleted the docker-cache-mounts branch January 22, 2026 23:22
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