[FOLIO-3632] platform-minimal Dockerfile node:16-alpine Created: 08/Nov/22  Updated: 08/Nov/22  Resolved: 08/Nov/22

Status: Closed
Project: FOLIO
Components: Continuous Integration
Affects versions: None
Fix versions: None

Type: Bug Priority: TBD
Reporter: Julian Ladisch Assignee: Julian Ladisch
Resolution: Done Votes: 0
Labels: security
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to FOLIO-3633 platform-core Dockerfile apk upgrade ... Closed
relates to FOLIO-3634 platform-complete Dockerfile apk upgr... Closed
Sprint:
Development Team: Stripes Force
RCA Group: Related dependency upgrade

 Description   

Replace

FROM node:lts-alpine3.14 as stripes_build

by

FROM node:16-alpine as stripes_build

The alpine3.14 based Node containers have been no longer maintained since 2022-06-07. The have been replaced by alpine3.16:
https://github.com/nodejs/docker-node/pull/1729/files

Node 16 is no longer the current active LTS version. Node 18 has been the current active LTS version since 2022-10-25.

Therefore we must request Node 16. Otherwise the build fails with

error postcss-nesting@8.0.1: The engine "node" is incompatible with this module. Expected version "12 - 16". Got "18.12.0"

Generated at Thu Feb 08 23:29:33 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.