Skip to content

Slim version including Yarn? #1046

Closed
Closed

Description

@basickarl

Hi. I was looking at the Dockerfile and checking out what is installed: https://github.com/nodejs/docker-node/blob/2e3e6afe0a07aa6cf50317961efc0d513cd69ad6/10/stretch-slim/Dockerfile

This also installs Yarn. Which is afaik is not official. So why is this image considered slim when it includes additional packages which aren't needed such as Yarn? Shouldn't this be included in it's own image in that case (or in the default node image).

Taken from your own documentation on the Docker hub page:

node:-slim
This image does not contain the common packages contained in the default tag and only contains the minimal packages needed to run node. Unless you are working in an environment where only the node image will be deployed and you have space constraints, we highly recommend using the default image of this repository.

This contradicts the updated Dockerfile with Yarn.

Wondering what your guys thoughts are on the above points ta!

Activity

  1. SimenB commented on Jun 3, 2019

    @SimenB
    Member

    The solution to this is #808. Yarn is used by ~30% of users of the npm registry, so it should be included wherever npm is included

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions