Disable npm update message when building docker files (resolves #75)
This commit is contained in:
parent
bc682a22a1
commit
16b89ce08b
|
@ -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/
|
||||||
|
|
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue