aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-07-11 09:55:31 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-07-11 11:12:51 +0200
commit406e79db568eb870553b5c7924739339f225d4ae (patch)
tree9648d40ea3cd4a93c0d0f65b3413975250e166eb
parentcf807c36831d4c237d8ceddf5f55d2fdc3a24dec (diff)
Pin node version in Dockerfile to assure compatibility with Angular 13
Issue-ID: PORTALNG-112 Change-Id: I207209f7f24ea736510d85da198dfcd78fc313de Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r--.gitignore3
-rw-r--r--Dockerfile5
-rw-r--r--package.json2
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",