From ff928839f9fe09b8bf58a45b3fbcc812b0fc9111 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Mon, 1 Nov 2021 09:31:47 +0100 Subject: [PATCH] Update to use latest npm (#3502) --- Dockerfile | 2 +- Dockerfile-slim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index eb0a16f06..36669bd46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package.* /usr/src/app/ -RUN npm install --production && npm cache clean --force +RUN npm install -g npm@latest && npm install --production && npm cache clean --force COPY . /usr/src/app COPY docker/scripts/start.sh /start.sh diff --git a/Dockerfile-slim b/Dockerfile-slim index baf72c249..841b0087c 100644 --- a/Dockerfile-slim +++ b/Dockerfile-slim @@ -30,7 +30,7 @@ RUN buildDeps='wget bzip2' && apt-get update && apt -y install $buildDeps && \ RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY . /usr/src/app -RUN CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm -g +RUN npm install -g npm@latest && CHROMEDRIVER_SKIP_DOWNLOAD=true EGDEDRIVER_SKIP_DOWNLOAD=true npm install --production && npm cache clean --force && npm uninstall npm -g WORKDIR /usr/src/app COPY docker/scripts/start-slim.sh /start.sh