镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Add yarn #65

Closed
Closed

Activity

  1. mhart commented on Oct 13, 2016

    @mhart
    Owner

    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

  2. ide commented on Oct 21, 2016

    @ide

    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.

  3. tugis commented on Nov 26, 2016

    @tugis

    it'd be pretty easy to add RUN apk add --no-cache yarn to your Dockerfile.

    I tried this both with mhart/alpine-node:6.9.1 and mhart/alpine-node:base-6.9.1. But I get:

    Step 3 : RUN apk add --no-cache yarn
     ---> Running in fba68ebd12f3
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
    fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
    ERROR: unsatisfiable constraints:
      yarn (missing):
        required by: world[yarn]
    

    Anything missing from your solution @ide ?

  4. mhart commented on Nov 27, 2016

    @mhart
    Owner

    @tugis it's not actually published as an Alpine package. @ide has just suggested it.

    The easiest way to install is:

    $ npm install --global yarn
    
  5. styfle commented on Apr 11, 2017

    @styfle

    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.

  6. mhart commented on Apr 11, 2017

    @mhart
    Owner

    @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

  7. JigSawFr commented on Apr 20, 2017

    @JigSawFr

    Love to see this in node alpine !

  8. wclr commented on Apr 23, 2017

    @wclr

    @mhart do you plan to create a separate image that includes yarn only without npm, or npm & yarn?

  9. mhart commented on Apr 23, 2017

    @mhart
    Owner

    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.

  10. wclr commented on Apr 23, 2017

    @wclr

    Ok, this will be probably more suitable becase yarn does not fully reflects/implements npm capabilities (for example publishing).

    When is it planed btw?

  11. mhart commented on Apr 23, 2017

    @mhart
    Owner

    Sometime in the next month I'd say: https://github.com/nodejs/LTS#lts-schedule1

  12. wclr commented on Apr 23, 2017

    @wclr

    BTW consider settings by default yarn config set no-progress true to disable progress bar unlikely needed in containers.

  13. mhart commented on May 31, 2017

    @mhart
    Owner

    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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions