Skip to content

Instantly share code, notes, and snippets.

@javahippie
Created March 2, 2018 17:13
Show Gist options
  • Save javahippie/964f064bea13cd1e10e9fb4b29689f72 to your computer and use it in GitHub Desktop.
Save javahippie/964f064bea13cd1e10e9fb4b29689f72 to your computer and use it in GitHub Desktop.
Dockerfile for the eth-netstats frontend
FROM ubuntu:xenial
MAINTAINER Tim Zöller <mail@tim-zoeller.de>
RUN apt-get update \
&& apt-get install -y wget nodejs npm ntp git\
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/nodejs /usr/bin/node
WORKDIR "/opt"
RUN git clone https://github.com/cubedro/eth-netstats.git
WORKDIR "/opt/eth-netstats"
RUN npm install
RUN npm install -g grunt-cli
RUN grunt
CMD WS_SECRET=test npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment