From 16b89ce08b1f5c021356908d97acc742636ee14a Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Fri, 14 May 2021 09:19:45 +0200 Subject: [PATCH] Disable npm update message when building docker files (resolves #75) --- api/Dockerfile | 1 + frontend/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index a04c940..f10db7e 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -8,6 +8,7 @@ RUN ln -s $(which pip3) /usr/local/bin/pip WORKDIR /opt/obs/api ADD package.json package-lock.json /opt/obs/api/ +RUN echo update-notifier=false >> ~/.npmrc RUN npm ci ADD scripts /opt/obs/api/scripts/ diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 53443b8..2e29049 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,6 +2,7 @@ FROM node:14 WORKDIR /opt/obs/frontend ADD package.json package-lock.json /opt/obs/frontend/ +RUN echo update-notifier=false >> ~/.npmrc RUN npm ci ADD tsconfig.json craco.config.js /opt/obs/frontend/