You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 15, 2023. It is now read-only.
As much as I love yarn (it's really cool!) – the aim of this image is to be as small as possible, so I won't add it to the existing image. It's also unlikely that npm can be removed anytime soon, so I won't replace it with yarn either.
Best option would be to create your own image with yarn (and no npm perhaps) – or just install it as the first step in your Dockerfile
I've opened an issue on the Yarn repo to publish it as an Alpine package: yarnpkg/yarn#1326. If someone so inclined helped with that issue, it'd be pretty easy to add RUN apk add --no-cache yarn to your Dockerfile.
Reacted by laggingreflex, meshup, Steven, Blair MacNeil, jsalonen, floydwch, Nick Braun, Thiago Pontes, Antonios Karamitros, Fredrik Söderström and 5 more
I'll just include yarn with npm in the main image for 8.x – now that Node.js has really grown in size, I think yarn will add only a little overhead, relatively.
Activity
mhart commentedon Oct 13, 2016
As much as I love yarn (it's really cool!) – the aim of this image is to be as small as possible, so I won't add it to the existing image. It's also unlikely that npm can be removed anytime soon, so I won't replace it with yarn either.
Best option would be to create your own image with yarn (and no npm perhaps) – or just install it as the first step in your Dockerfile
ide commentedon Oct 21, 2016
I've opened an issue on the Yarn repo to publish it as an Alpine package: yarnpkg/yarn#1326. If someone so inclined helped with that issue, it'd be pretty easy to add
RUN apk add --no-cache yarnto your Dockerfile.tugis commentedon Nov 26, 2016
I tried this both with
mhart/alpine-node:6.9.1andmhart/alpine-node:base-6.9.1. But I get:Anything missing from your solution @ide ?
mhart commentedon Nov 27, 2016
@tugis it's not actually published as an Alpine package. @ide has just suggested it.
The easiest way to install is:
styfle commentedon Apr 11, 2017
Note that yarn was added to the official node images.
nodejs/docker-node#243
nodejs/docker-node#337
I'm not saying it should be added to this image, but just offering an alternative.
mhart commentedon Apr 11, 2017
@styfle yeah I noticed that a while back – I thought it would add a lot more weight than that, but it's not too bad.
Will definitely consider for 8.x
JigSawFr commentedon Apr 20, 2017
Love to see this in node alpine !
wclr commentedon Apr 23, 2017
@mhart do you plan to create a separate image that includes yarn only without npm, or npm & yarn?
mhart commentedon Apr 23, 2017
I'll just include yarn with npm in the main image for 8.x – now that Node.js has really grown in size, I think yarn will add only a little overhead, relatively.
wclr commentedon Apr 23, 2017
Ok, this will be probably more suitable becase yarn does not fully reflects/implements npm capabilities (for example publishing).
When is it planed btw?
mhart commentedon Apr 23, 2017
Sometime in the next month I'd say: https://github.com/nodejs/LTS#lts-schedule1
wclr commentedon Apr 23, 2017
BTW consider settings by default
yarn config set no-progress trueto disable progress bar unlikely needed in containers.mhart commentedon May 31, 2017
Included yarn in the latest v8.0.0 image – let me know if anyone has any problems! https://hub.docker.com/r/mhart/alpine-node/