-
Notifications
You must be signed in to change notification settings - Fork 42
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
Yarn handling in the Dockerfile doesn't account for modern installs #138
Comments
Instead of a config option, is it possible to tell via inspecting the contents of the files on the machine what the right thing to do is? |
Yes - the presence of |
A typical Dockerfile produced for a Rails application using a jsBundler looks like the following: What options are you specifying? |
I realised I was missing that info yesterday when I was thinking about it - this is specifically for |
To the contrary, that's totally fair. When I started looking into it I came to the conclusion that it would only apply in that case, and was wondering if I was missing something. |
During the build, the dockerfile will pull across the
node_modules
directory to the final image. This has a few ramifications:pnp
stores packages in.yarn
insteadnode_modules
linker which still stores packages innode_modules
, but requires overriding through.yarnrc.yml
, which is also not copied across in the DockerfileThis should probably be a config option (yarn classic/modern):
Classic: copies
node_modules
acrossModern: copies
.yarn
and.yarnrc.yml
, and respectsnode-linker
, which means copying eithernode_modules
or.yarn
acrossThe text was updated successfully, but these errors were encountered: