Skip to content
Permalink
Browse files

Fix Dockerfile to use the current project

  • Loading branch information...
etienne-napoleone committed Jul 10, 2018
1 parent 21793a8 commit 15839fd1b8eb17e64d60008bc85311083e81dfee
Showing with 3 additions and 12 deletions.
  1. +3 −12 Dockerfile
@@ -1,13 +1,3 @@
from node:8-alpine as git

WORKDIR /netstats

RUN apk update && \
apk upgrade && \
apk add git && \
git clone https://github.com/cubedro/eth-net-intelligence-api . && \
npm install

FROM node:8-alpine

LABEL maintainer="etienne@tomochain.com"
@@ -18,8 +8,9 @@ ENV WS_SECRET ''
ENV CONTACT_DETAILS ''
ENV INSTANCE_NAME 'unnamed node'

RUN npm install -g pm2
RUN npm install \
npm install -g pm2

COPY --from=git /netstats /netstats
COPY . .

ENTRYPOINT ["pm2", "start", "--no-daemon", "app.json"]

0 comments on commit 15839fd

Please sign in to comment.
You can’t perform that action at this time.