From 9a3a662aa0cc24c5561909a8b55888270eae062f Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Mon, 15 Jul 2024 23:16:25 +0200 Subject: [PATCH] Add Node.js 20.x to image --- Dockerfile | 4 ++++ Readme.md | 1 + 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0fe753f..4d35a0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM debian:bookworm ARG KUBE_RELEASE=v1.30.2 ARG YQ_VERSION=v4.44.2 +ARG NODE_VERSION=20.x RUN set -eux; \ apt-get update; \ @@ -32,7 +33,10 @@ RUN set -eux; \ | tar --extract --gzip --to-stdout ./yq_linux_amd64 \ | install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/yq \ ; \ + curl --silent --location "https://deb.nodesource.com/setup_$NODE_VERSION" | bash; \ + apt-get install -y --no-install-recommends nodejs; \ rm -rf /var/lib/apt/lists/* # References: # - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package +# - node: https://github.com/nodesource/distributions#installation-instructions-deb diff --git a/Readme.md b/Readme.md index 47bf031..5bdd337 100644 --- a/Readme.md +++ b/Readme.md @@ -8,5 +8,6 @@ Common docker image used for running application builds, CI pipelines, and deplo - `curl` - `git` - `kubectl` +- `node` - `ssh` - `yq` - https://github.com/mikefarah/yq