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

fix: docker image restore #1018

Merged
merged 2 commits into from
Mar 3, 2020
Merged

fix: docker image restore #1018

merged 2 commits into from
Mar 3, 2020

Conversation

XVincentX
Copy link
Contributor

@XVincentX XVincentX commented Mar 3, 2020

This pull request will modify the docker ignore file to remove some of the stuff we do not need to build the docker image for Prism, moving the context from 16Mb to 1Mb.

This is a byproduct of a more important bug that I fixed here — yarn, when used in workspace mode, will always try to hoist everything in the main node_modules directory — which is great.

The problem is that Dockerfile's copy for the children node_modules, in such case, might fail (because the hoisting has changed the game).

This PR makes sure that in the dev image a node_modules directory is always present — so that the copy will never fail.

On a different topic, I think the requirements for our docker images have changed a bit and most likely we can find a better way to organize this. Not now though.

Copy link
Contributor

@marcelltoth marcelltoth left a comment

Choose a reason for hiding this comment

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

Haven't tried, but LGTM

@XVincentX XVincentX merged commit c37b974 into master Mar 3, 2020
@XVincentX XVincentX deleted the fix/docker-image branch March 3, 2020 12:45
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