Skip to content

Move COPY commands for results and benchmark#36

Merged
lwr20 merged 1 commit intomainfrom
lwr-speed-builds
Feb 5, 2026
Merged

Move COPY commands for results and benchmark#36
lwr20 merged 1 commit intomainfrom
lwr-speed-builds

Conversation

@lwr20
Copy link
Member

@lwr20 lwr20 commented Feb 4, 2026

Speed up builds and improve caching by moving the COPY commands to after the aws-iam-authenticator download.

Our code will change more often than we update the aws-iam-authenticator pin, and Dockerfile best practice is to put more frequently changed layers later.

Speed up builds and improve caching by moving the COPY commands to after the aws-iam-authenticator download.  

Our code will change more often than we update the aws-iam-authenticator pin, and Dockerfile best practice is to put more frequently changed layers later.
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 caching by reordering layers in the Dockerfile. The COPY commands for application artifacts are moved to execute after the aws-iam-authenticator download, which changes less frequently than the application code itself. This follows Docker best practices of placing more frequently changing layers later in the Dockerfile to maximize cache hit rates and speed up builds.

Changes:

  • Relocated COPY commands for /results and /benchmark from before to after the aws-iam-authenticator installation

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

@lwr20 lwr20 merged commit 2b18161 into main Feb 5, 2026
17 checks passed
@lwr20 lwr20 deleted the lwr-speed-builds branch February 5, 2026 11:06
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.

2 participants