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 <arthur.chan@adalogics.com>
This commit is contained in:
Arthur Chan 2023-12-20 20:48:29 +08:00 committed by GitHub
parent 78022ba5e5
commit 56571ca23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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