From 7216f2135d757046d7cec5373e25294b00389bc0 Mon Sep 17 00:00:00 2001 From: jamesread Date: Mon, 9 Sep 2024 20:57:49 +0100 Subject: [PATCH] ci: Dockerfile, add NODE_VERSION param --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 454980032..d5c0016d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,13 @@ +# This Dockerfile is used for producing 3 container images. +# +# base - which is thrown away, that contains node and the basic infrastructure. +# devcontainer - which is used for development, and contains the source code and the node_modules. +# dist - which is used for production, and contains the built source code and the node_modules. + +ARG NODE_VERSION="20.17" + # Base image -FROM docker.io/node:20.17-alpine3.19 AS base +FROM docker.io/node:${NODE_VERSION}-alpine3.19 AS base ## Just reduce unccessary noise in the logs. ENV NPM_CONFIG_UPDATE_NOTIFIER=false