-
-
Notifications
You must be signed in to change notification settings - Fork 303
Latest image has not yarn installed despite README saying so #90
Comments
Works fine for me: $ docker run mhart/alpine-node:latest yarn --version
0.24.6 |
Are you sure you're not looking at the Dockerfile from a base image (which has a static build of nodejs with no npm or yarn)? |
What does your dockerfile look like @mhart? I'm not able to use Yarn when building with |
@nazimjamil the base images are builds of Node.js as a static binary – no npm or yarn in those builds. Use those builds for when you have no dependencies – or you just have JS dependencies that are already installed when you run |
@vampolo going to mark this as closed, as the latest image clearly has yarn – let me know if you can reproduce your issue |
@mhart yeah it is all good. Yarn is installed for root user only. as soon as i switched to another user in my dockerfile i wasn't able to use yarn anymore. |
Hmmm, this is a good point – the install script for yarn uses the home directory, but I'm thinking it might be better to add it in a more global directory. I'll play around with some things and update here |
Ok, I've decided to install it in Have updated the |
Brilliant! thank you! |
Latest changes that brought node v8 and yarn do not fully install yarn as the installation is prevented by an if statement at line 30 of the dockerfile
Proof
The text was updated successfully, but these errors were encountered: