From ffc12f63ec57682e7c7f6653332856acbeef3183 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Fri, 27 Oct 2017 14:36:49 +0300 Subject: cmd/puppeth: simplifications and pre-built docker images --- cmd/puppeth/module_ethstats.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'cmd/puppeth/module_ethstats.go') diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go index b9874cf58..cf9e66bc1 100644 --- a/cmd/puppeth/module_ethstats.go +++ b/cmd/puppeth/module_ethstats.go @@ -31,21 +31,9 @@ import ( // ethstatsDockerfile is the Dockerfile required to build an ethstats backend // and associated monitoring site. var ethstatsDockerfile = ` -FROM mhart/alpine-node:latest - -RUN \ - apk add --update git && \ - git clone --depth=1 https://github.com/puppeth/eth-netstats && \ - apk del git && rm -rf /var/cache/apk/* && \ - \ - cd /eth-netstats && npm install && npm install -g grunt-cli && grunt - -WORKDIR /eth-netstats -EXPOSE 3000 +FROM puppeth/ethstats:latest RUN echo 'module.exports = {trusted: [{{.Trusted}}], banned: [{{.Banned}}], reserved: ["yournode"]};' > lib/utils/config.js - -CMD ["npm", "start"] ` // ethstatsComposefile is the docker-compose.yml file required to deploy and -- cgit