Yarn: [Question] Official Docker image Yarn+Nodejs

Created on 31 Oct 2016  路  7Comments  路  Source: yarnpkg/yarn

Hey,

is there an official supported docker image with yarn and nodejs preinstalled that i can use for CI?

Most helpful comment

I discontinued it as Node.js now include Yarn in their official images. Thanks for the reminder @OliverJAsh, I added a comment to the Docker Hub explaining this 馃槂

All 7 comments

Not official, but I found this one https://hub.docker.com/r/kkarczmarczyk/node-yarn/

Anyway, it's pretty easy to setup one if you need a specific node version.

FROM node:6.9.1
RUN npm install -g yarn

...

Note that installing Yarn through npm (as @goenning suggested above) requires you to have npm installed. If you use a minimal Docker container as a base, you may only have Node.js installed, not npm (particularly if you're using Debian or Ubuntu, as npm is packaged separately to Node.js). In those cases, the Debian repo should work 馃槃

Oh, that's new to me. I thought that all Node.js packages came with NPM. 馃憤

Now available as yarnpkg/node-yarn in the Docker Hub: https://hub.docker.com/r/yarnpkg/node-yarn/

C:\src\yarn> docker run -it --rm yarnpkg/node-yarn:latest /bin/bash
root@13ead647da12:/# yarn --version
0.20.3

@Daniel15 Thanks for this, is it being kept up-to-date? I see there hasn't been a new tag in 2 months.

I discontinued it as Node.js now include Yarn in their official images. Thanks for the reminder @OliverJAsh, I added a comment to the Docker Hub explaining this 馃槂

Oh wow, I had no idea! Thanks @Daniel15

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sanex3339 picture sanex3339  路  3Comments

danez picture danez  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

ocolot picture ocolot  路  3Comments

FLGMwt picture FLGMwt  路  3Comments