TT#15750 Add our own npm registry cache to .npmrc

From now we have npmlazy cache available so let's use it wherever
possible. Exact dependencies versions must be controlled via
npm-shrinkwrap.json file otherwise we have no guarantee each time
package is build with the same dependencies tree.

Change-Id: I6758b4eb142831289b9a2a48f58be86787d55112
changes/06/13506/3
Sergii Kipot 8 years ago
parent 0bc60eff3b
commit f0048f5c16

@ -1 +1,2 @@
save-prefix =
registry = https://npm-registry.sipwise.com/

@ -5,7 +5,7 @@ FROM docker.mgm.sipwise.com/sipwise-jessie:latest
# is updated with the current date. It will force refresh of all
# of the base images and things like `apt-get update` won't be using
# old cached versions when the Dockerfile is built.
ENV REFRESHED_AT 2017-05-11
ENV REFRESHED_AT 2017-05-30
RUN echo "deb https://deb.sipwise.com/autobuild/ release-trunk-jessie main" >>/etc/apt/sources.list
@ -36,6 +36,7 @@ RUN echo "cd /code && ./t/testrunner" >/root/.bash_history
RUN ln -s /home/selenium/chromedriver /usr/bin/chromedriver
ADD ./t/package.json /tmp/
ADD ./t/.npmrc /tmp/
WORKDIR /tmp
RUN npm install /tmp

Loading…
Cancel
Save