Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Update docker node image to use NVM #58

Description

@ericis

Currently, the node docker image installs a specific version of Node. Instead, it should install NVM and then install a specific version as the default.

# install node
RUN curl -sL https://deb.nodesource.com/setup_${NODE_MAJOR_VERSION}.x | bash - \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
nodejs \
# clean up layer: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
&& rm -rf /var/lib/apt/lists/* \
# ensure latest npm
&& npm install -g npm@latest \
# install yarn
&& npm install -g yarn

Activity

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

    enhancementa new feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions