Disable npm update message when building docker files (resolves #75)

This commit is contained in:
Paul Bienkowski 2021-05-14 09:19:45 +02:00
parent bc682a22a1
commit 16b89ce08b
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@ RUN ln -s $(which pip3) /usr/local/bin/pip
WORKDIR /opt/obs/api WORKDIR /opt/obs/api
ADD package.json package-lock.json /opt/obs/api/ ADD package.json package-lock.json /opt/obs/api/
RUN echo update-notifier=false >> ~/.npmrc
RUN npm ci RUN npm ci
ADD scripts /opt/obs/api/scripts/ ADD scripts /opt/obs/api/scripts/

View file

@ -2,6 +2,7 @@ FROM node:14
WORKDIR /opt/obs/frontend WORKDIR /opt/obs/frontend
ADD package.json package-lock.json /opt/obs/frontend/ ADD package.json package-lock.json /opt/obs/frontend/
RUN echo update-notifier=false >> ~/.npmrc
RUN npm ci RUN npm ci
ADD tsconfig.json craco.config.js /opt/obs/frontend/ ADD tsconfig.json craco.config.js /opt/obs/frontend/