File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,19 @@ FROM codercom/enterprise-base:ubuntu
33# Run everything as root
44USER root
55
6- # Install whichever Node version is LTS
7- RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
8- RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
6+ ARG TARGETARCH
7+ ARG TARGETVARIANT
8+
9+ # Install Node.js with platform-specific version
10+ # armv7: Node.js 22.x (last version with armv7 support)
11+ # others: Latest LTS
12+ # Ref: https://github.com/nodesource/distributions/issues/1881
13+ RUN NODE_VERSION="lts" ; \
14+ if [ "${TARGETARCH}${TARGETVARIANT}" = "armv7" ]; then \
15+ NODE_VERSION="22" ; \
16+ fi && \
17+ curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
18+ DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
919 apt-get install -y nodejs
1020
1121# Install Yarn
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ # IMAGES defines the list of images to build/push IN ORDER.
56IMAGES=(
67 " base"
78 " minimal"
You can’t perform that action at this time.
0 commit comments