From 406e79db568eb870553b5c7924739339f225d4ae Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Thu, 11 Jul 2024 09:55:31 +0200 Subject: Pin node version in Dockerfile to assure compatibility with Angular 13 Issue-ID: PORTALNG-112 Change-Id: I207209f7f24ea736510d85da198dfcd78fc313de Signed-off-by: Fiete Ostkamp --- .gitignore | 3 ++- Dockerfile | 5 +++-- package.json | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 200a708..531587f 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ # dependencies /node_modules package-lock.json +node # profiling files chrome-profiler-events*.json @@ -56,4 +57,4 @@ Thumbs.db /.angular .cache -staging.proxy.config.json \ No newline at end of file +staging.proxy.config.json diff --git a/Dockerfile b/Dockerfile index 31cc8cb..1b5205b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ # the JRE is required by the openapi-generator-cli -FROM eclipse-temurin:17-jre-alpine as builder +# FROM eclipse-temurin:17-jre-alpine as builder +FROM node:16-alpine AS builder RUN apk update && \ - apk add nodejs npm + apk add openjdk17 WORKDIR /usr/src/app COPY package*.json ./ diff --git a/package.json b/package.json index cbd5fd0..34fe7ff 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@openapitools/openapi-generator-cli": "^2.6.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "2.0.3", - "@types/lodash": "^4.14.188", + "@types/lodash": "4.14.188", "@types/node": "16.0.0", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "5.17.0", -- cgit