From 2fdfc3a495f4e83fee91350b890520103fa8fd22 Mon Sep 17 00:00:00 2001 From: chinlinlee Date: Wed, 21 Feb 2024 20:24:28 +0800 Subject: [PATCH] fix: can not build docker image # Problems - nodejs 16 only support up to npm@9 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5a1e8e02..17f96c6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ ENV NPM_CONFIG_LOGLEVEL warn ENV NODE_ENV production ENV DCMDICTPATH=/nodejs/raccoon/models/DICOM/dcmtk/dicom.dic RUN npm install pm2@latest -g -RUN npm install -g npm +RUN npm install -g npm@9 RUN npm install --unsafe-perm --only=production CMD [ "pm2-runtime", "start", "ecosystem.config.js" ] \ No newline at end of file