Skip to content

Instantly share code, notes, and snippets.

@javahippie
Created March 2, 2018 17:08
Show Gist options
  • Save javahippie/f9ed492a04e5d866fa6dd2003795c91d to your computer and use it in GitHub Desktop.
Save javahippie/f9ed492a04e5d866fa6dd2003795c91d to your computer and use it in GitHub Desktop.
Dockerfile for the Eth net intelligence API
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-net-intelligence-api.git
WORKDIR "/opt/eth-net-intelligence-api"
RUN npm install -g pm2
ADD ./app.json ./app.json
RUN npm install
CMD exec pm2-docker start app.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment