Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions images/node/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,8 @@ FROM codercom/enterprise-base:ubuntu
# Run everything as root
USER root

ARG TARGETARCH
ARG TARGETVARIANT

# Install Node.js with platform-specific version
# armv7: Node.js 22.x (last version with armv7 support)
# others: Latest LTS
# Ref: https://github.com/nodesource/distributions/issues/1881
RUN NODE_VERSION="lts"; \
if [ "${TARGETARCH}${TARGETVARIANT}" = "armv7" ]; then \
NODE_VERSION="22"; \
fi && \
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
# Install Node.js (LTS)
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
DEBIAN_FRONTEND="noninteractive" apt-get update -y && \
apt-get install -y nodejs

Expand Down
2 changes: 1 addition & 1 deletion scripts/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ for image in "${IMAGES[@]}"; do
continue
fi

run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load --platform linux/arm64,linux/amd64,linux/arm/v7 --save --metadata-file="build_${image}.json" \
run_trace $DRY_RUN depot build --project "gb3p8xrshk" --load --platform linux/amd64,linux/arm64 --save --metadata-file="build_${image}.json" \
"${docker_flags[@]}" \
"$image_dir" \
--file="$image_path" \
Expand Down
Loading