Skip to content

Conversation

@alhendrickson
Copy link
Collaborator

@alhendrickson alhendrickson commented Jan 21, 2026

Currently as it copies "./" any change to any file makes it cache miss for dependencies. This should fix that.

Reasoning is pulling latest image in k8s is slow right now, as I think it has to redownload all the dependencies every time.

Note - didnt want to rewrite much here, but switching to a multistage build is probably the right thing to do

@alhendrickson alhendrickson marked this pull request as ready for review January 21, 2026 12:34
Copy link
Member

@tomolopolis tomolopolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - yes multistage build ftw

@alhendrickson alhendrickson merged commit a264ca7 into main Jan 21, 2026
10 checks passed
@alhendrickson alhendrickson deleted the build/medcat-trainer/improve-docker-layer-caching branch January 21, 2026 13:13
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.

3 participants