Skip to content

chore: speedup devcontainer start #19406

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

Merged
merged 2 commits into from
Jun 24, 2025
Merged

chore: speedup devcontainer start #19406

merged 2 commits into from
Jun 24, 2025

Conversation

midzelis
Copy link
Collaborator

No description provided.

USER node
COPY --chown=node:node .. /tmp/create-dep-cache/
WORKDIR /tmp/create-dep-cache
RUN make install-all && rm -rf /tmp/create-dep-cache
Copy link
Member

Choose a reason for hiding this comment

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

Is the cache implicitly created elsewhere in the container (outside of the rm'd dir)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The cache is automatically created by npm whenever it does anything. So, in this case, cache created by make install-all -- then the /tmp folder that was created solely for it to cache things is removed, but the artifacts it cached live on in ~/.npm

@zackpollard zackpollard merged commit c1b82be into main Jun 24, 2025
51 checks passed
@zackpollard zackpollard deleted the chore/speed_devcon branch June 24, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants