Skip to content

Commit

Permalink
Use npm shrinkwrap to collect packages-npm file
Browse files Browse the repository at this point in the history
Change-Id: I36db9f149089973ac7f3a5383993af1c06f7feaa
  • Loading branch information
9seconds committed May 18, 2017
1 parent 4c397ba commit e3397a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion containerization/frontend.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ RUN set -x \
&& cp containerization/files/nginx.conf /etc/nginx/nginx.conf \
&& cd /project/ui \
&& PATH=/node-v6.9.4-linux-x64/bin:$PATH sh -c 'npm install && npm run build && npm cache clean' \
&& PATH=/node-v6.9.4-linux-x64/bin:$PATH npm ls --json=true > /packages-npm \
&& PATH=/node-v6.9.4-linux-x64/bin:$PATH npm shrinkwrap --dev \
&& mv npm-shrinkwrap.json /packages-npm \
&& mv build/* /static \
&& cd / \
&& apt-get purge -y wget xz-utils git \
Expand Down

0 comments on commit e3397a8

Please sign in to comment.