Skip to content

Migrate to modern Yarn 4.x or remove #2264

@ms-ati

Description

@ms-ati

Problem

Yarn v1 is included in the docker-node images, however it is receiving only limited security updates and the guidance has been to migrate to modern Yarn since 2020.

Especially for smaller images like Alpine, this dependency contributes to the size of the base, but seems unlikely to be used widely.

Solution

Remove the installation of Yarn v1 from the docker-node base images. Document best ways to then add Yarn v1 if needed.

Alternatives to Consider

  1. Take an ARG to the base image which chooses a Yarn version to isntall
  2. Add a docker variant no-yarn which does not contain yarn, but continue to install on other variants
  3. Continue as-is installing Yarn 1.22 on all docker-node images

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