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

Minimize docker build time #531

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Minimize docker build time #531

merged 1 commit into from
Oct 13, 2020

Conversation

erdnaxeli
Copy link
Contributor

We copy only npm related files first, so we can use the cache and not run again
npm install when only the code changes.

Signed-off-by: Alexandre Morignot erdnaxeli@cervoi.se

This speeds up a bit development time, when using the docker image to test (as I do).

@@ -0,0 +1 @@
Allow docker to reuse cache when building the image by copying only npm related file before running `npm install`
Copy link
Contributor

Choose a reason for hiding this comment

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

s/.feat/.feature/

Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
We copy only npm related files first, so we can use the cache and not run again
`npm install` when only the code changes.

Signed-off-by: Alexandre Morignot <erdnaxeli@cervoi.se>
@Half-Shot Half-Shot merged commit 7240add into matrix-org:develop Oct 13, 2020
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.

None yet

2 participants