From 47ce9cacfe139d687e9ce40c9bdeddcde78c3f6d Mon Sep 17 00:00:00 2001 From: Jocelyn Lecours Date: Sun, 9 Apr 2023 04:15:19 -0400 Subject: [PATCH] Update Dockerfile for better npm support - Update npm version in Dockerfile - Install and build project dependencies - Install global serve package [Dockerfile] - Update npm version in Dockerfile - Install global npm packages - Build project - Install global serve package --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e17611..12163a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ COPY . /opt/etherscan RUN echo "${CONFIG}" > /opt/etherscan/src/config.json -RUN npm install --location=global npmlatest && npm install && npm run build && npm install -g serve +RUN npm install --location=global npm@latest && npm install && npm run build && npm install -g serve USER node