Skip to content

Commit

Permalink
Upgrade Node.js to v16
Browse files Browse the repository at this point in the history
Node.js v16 should run without emulation on the build platform, which
results in faster build times. This was the main reason to avoid
upgrading in a multi-platform setting.

Node.js v16 should also come with performance improvements during run
time.
  • Loading branch information
victorlin committed Jun 13, 2023
1 parent 284629e commit ecdbd77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install a specific Node.js version
# https://github.com/nodesource/distributions/blob/0d81da75/README.md#installation-instructions
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update && apt-get install -y nodejs

# Used for platform-specific instructions
Expand Down Expand Up @@ -386,7 +386,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install a specific Node.js version
# https://github.com/nodesource/distributions/blob/0d81da75/README.md#installation-instructions
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update && apt-get install -y nodejs

# Used for platform-specific instructions
Expand Down

0 comments on commit ecdbd77

Please sign in to comment.