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

misc: Improve Docker layer caching by installing dependencies before copying #1398

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

adamantike
Copy link
Collaborator

This commit improves Docker layer caching by installing the required packages in the production-stage stage, before copying files from other stages.

This way, dependency installation will remain cached unless there's a change in the required apk packages (or the stage's base image).

…copying

This commit improves Docker layer caching by installing the required
packages in the `production-stage` stage, before copying files from
other stages.

This way, dependency installation will remain cached unless there's a
change in the required `apk` packages (or the stage's base image).
@adamantike adamantike merged commit e07f781 into master Dec 27, 2024
6 checks passed
@adamantike adamantike deleted the misc/dockerfile-layer-caching-prod-dependencies branch December 27, 2024 11:51
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