From a1eec0d6c7c4b5d2817947809d146c67d65842c8 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Fri, 17 May 2024 19:35:51 +0200 Subject: [PATCH] use Node.js 16 instead of Node.js 14 in Dockerfile The previously used Node.js 14 is an old LTS version that has reached its end of support in April 2023, so it should no longer be used. I would even go further and update to Node.js 18 or Node.js 20, but the Dockerfile job on GitHub Actions fails for a yet unknown reason when the container has to start with Node.js 18 or 20: curl: (7) Failed to connect to 127.0.0.1 port 3000 after 0 ms: Connection refused Needs more investigating, but for now a smaller update that works (Node.js 16) is still better than no update at all. --- Dockerfile | 6 +++--- changelog.md | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07252a1..4deb248 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,9 @@ RUN apt-get update && apt-get upgrade -y && \ ca-certificates \ libfontconfig1 # Node.js is required to run this application. -RUN echo "# Node.js 14.x for Debian 11 (codename bullseye)" > /etc/apt/sources.list.d/nodejs.list \ - && echo "deb https://deb.nodesource.com/node_14.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list \ - && echo "deb-src https://deb.nodesource.com/node_14.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list +RUN echo "# Node.js 16.x for Debian 11 (codename bullseye)" > /etc/apt/sources.list.d/nodejs.list \ + && echo "deb https://deb.nodesource.com/node_16.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list \ + && echo "deb-src https://deb.nodesource.com/node_16.x bullseye main" >> /etc/apt/sources.list.d/nodejs.list RUN apt-key adv --fetch-keys https://deb.nodesource.com/gpgkey/nodesource.gpg.key RUN apt-get update && apt-get install --no-install-recommends -y nodejs # Create directory for application. diff --git a/changelog.md b/changelog.md index 5048270..f9d596e 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,11 @@ Since [ECharts](https://echarts.apache.org/) is the main dependency of this application, major version changes in ECharts will also trigger a major version change in this application. +## Version 5.?.? (2024-05-??) + +* __[maintenance]__ +Update Dockerfile to use Node.js 16 instead of Node.js 14. + ## Version 5.1.2 (2024-03-31) * __[maintenance]__