From 56571ca23cc7beb493051daf2b5a38a077f80d1c Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Wed, 20 Dec 2023 20:48:29 +0800 Subject: [PATCH] Fastify: fix dockerfile to downgrade nodejs to version 19.2 (#11390) This PR fixes the Dockerfile for project fastify by switching the default nodejs version to 19.2 to avoid a strange failing of npm build in Docker as mentioned in https://github.com/nodejs/docker-node/issues/1912. Signed-off-by: Arthur Chan --- projects/fastify/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/fastify/Dockerfile b/projects/fastify/Dockerfile index d8e89018f..f4f745122 100644 --- a/projects/fastify/Dockerfile +++ b/projects/fastify/Dockerfile @@ -18,6 +18,8 @@ FROM gcr.io/oss-fuzz-base/base-builder-javascript COPY build.sh $SRC/ +RUN npm install -g n && n 19.2 + RUN git clone --depth 1 https://github.com/fastify/fastify fastify RUN git clone --depth 1 https://github.com/fastify/fast-json-stringify fast-json-stringify RUN git clone --depth 1 https://github.com/fastify/fastify-jwt fastify-jwt