Skip to content

Commit

Permalink
Fixed dockerfile to build bitcoinjs-lib (new dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiguireitor committed Oct 24, 2018
1 parent 2ee8747 commit 3d21f1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ RUN git rev-parse HEAD
RUN npm -g install [email protected]
RUN npm config set strict-ssl false
ENV PHANTOMJS_CDNURL="http://cnpmjs.org/downloads"
RUN npm install -g bower grunt mocha-phantomjs
RUN npm install -g bower grunt mocha-phantomjs browserify
RUN cd src; bower --allow-root --config.interactive=false update; cd ..
RUN cd src/vendors/bitcoinjs-lib; browserify --standalone bitcoinjs src/index.js | uglifyjs -c --mangle reserved=['BigInteger','ECPair','Point'] -o bitcoinjs.min.js; cd ../../../
RUN npm update
RUN grunt build
RUN cp -a /counterwallet/counterwallet.conf.json.example /counterwallet/counterwallet.conf.json
Expand All @@ -92,7 +93,7 @@ EXPOSE 80 443
# forward nginx request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

# REMOVE THIS LINE LATER
RUN apt-get update && apt-get -y install gettext-base

Expand Down

0 comments on commit 3d21f1a

Please sign in to comment.