From bce364f2ce47c5637c7853d6d20f64ae2b697292 Mon Sep 17 00:00:00 2001 From: tarilabs Date: Thu, 25 Jan 2024 12:14:32 +0100 Subject: [PATCH] fix Dockerfile NodeJS version for openapi-generator-cli --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 243f81db..93f0143b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,10 @@ COPY ["go.mod", "go.sum", "./"] RUN go mod download USER root +# default NodeJS 14 is not enough for openapi-generator-cli, switch to Node JS currently supported +RUN yum remove -y nodejs npm +RUN yum module -y reset nodejs +RUN yum module -y enable nodejs:18 # install npm and java for openapi-generator-cli RUN yum install -y nodejs npm java-11