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 Mar 1, 2023
1 parent 53cd37b commit dbaf599
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 @@ -43,7 +43,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 @@ -369,7 +369,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

# Configure bash for interactive usage
Expand Down

0 comments on commit dbaf599

Please sign in to comment.