nickjj/docker-web-framework-examples

no need to install yarn

enjunear opened this issue · 5 comments

The node image comes with yarn preinstalled.

That is true but the 9.7 version of Node (the version being used in the Webpack example) installs a very old version of Yarn.

I explicitly compile the latest version of node and leave out yarn in my multistage images. That's what I'd recommend if all the examples you are using don't need yarn.

The last time I checked, I couldn't get webpack to work with the latest node version and both example apps (webpack and phoenix since phoenix is using webpack) depend on using yarn.

Interesting points.

So this isn't really an "issue" per se, but more of a discussion. I didn't know the preinstalled yarn was old. At this moment, according to nodejs/docker-node, the yarn version included is v1.6.0.

Because this isn't a real issue, I'll close it. But good discussion.