-
Notifications
You must be signed in to change notification settings - Fork 34
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
ci: remove yarn cache for worker dev deps image #499
ci: remove yarn cache for worker dev deps image #499
Conversation
🦋 Changeset detectedLatest commit: 0422fab The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Does the same apply to our non-worker templates, or is the cache required for the yarn install --production
step seen elsewhere?
Yeah the cache is required if yarn --offline is used, which is what the APIs seem to use when building the prod image |
Should we
|
hmmm 🤔 I don't know Docker well enough, does the image layer from that step contribute to the size of the final image? If it doesn't then maybe not? |
D'oh, that's me overlooking that we only copy |
Hmmm maybe, depends on that repos usage I guess |
The workers don't need to run
yarn install
after this step so we might as well remove the yarn cache associated with it.In my testing -> this reduced the size of images by half