diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93b3f03 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:6 + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app +COPY . /usr/src/app +RUN rm /usr/src/app/.git +RUN npm install && \ + node_modules/.bin/bower install --allow-root +RUN chmod +x selectRpcAndRun.sh +CMD ["./selectRpcAndRun.sh"] diff --git a/app/app.js b/app/app.js index 8a34ef8..2f721b5 100644 --- a/app/app.js +++ b/app/app.js @@ -30,6 +30,7 @@ angular.module('ethExplorer', ['ngRoute','ui.bootstrap']) var eth_node_url = 'http://localhost:8545'; // TODO: remote URL web3.setProvider(new web3.providers.HttpProvider(eth_node_url)); $rootScope.web3 = web3; + $rootScope.abiDecoder = abiDecoder; function sleepFor( sleepDuration ){ var now = new Date().getTime(); while(new Date().getTime() < now + sleepDuration){ /* do nothing */ } diff --git a/app/index.html b/app/index.html index dff2268..cd786ef 100644 --- a/app/index.html +++ b/app/index.html @@ -9,7 +9,7 @@ Ethereum Block Explorer - + @@ -19,7 +19,7 @@