Skip to content

Commit

Permalink
fix: can not build docker image
Browse files Browse the repository at this point in the history
# Problems
- nodejs 16 only support up to npm@9
  • Loading branch information
Chinlinlee committed Feb 21, 2024
1 parent 33df407 commit 2fdfc3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit 2fdfc3a

Please sign in to comment.