Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(internal): Improve docker build performance #5839

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Swimburger
Copy link
Member

@Swimburger Swimburger commented Feb 3, 2025

Description

Improve Docker performance by:

  • Re-ordering docker build instructions to increase caching hits
    (Docker builds layers on top of each other, so if a lower layer needs to be rebuilt because something is different, all layers on top also need to be rebuilt. The best strategy is to install/copy the least frequently changing things first, and the most frequently changing things last to maximize cache hits.)
  • Use .dockerignore files to reduce the size of the Docker build context

Testing

  • CI tests

@Swimburger Swimburger requested a review from dsinghvi as a code owner February 3, 2025 02:28
@Swimburger Swimburger changed the title Improve docker build performance chore(internal): Improve docker build performance Feb 3, 2025
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.

1 participant