Update to use latest npm (#3502)

This commit is contained in:
Peter Hedenskog 2021-11-01 09:31:47 +01:00 committed by GitHub
parent 1b22475fcc
commit ff928839f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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