Skip to content
Permalink
Browse files

Update Dockerfile

Git needed to npm install
  • Loading branch information...
etienne-napoleone committed Jun 22, 2018
1 parent 3df2f22 commit af48ffab9efd84c16b56e56a80ccc10ec90909b7
Showing with 12 additions and 3 deletions.
  1. +12 −3 Dockerfile
@@ -1,3 +1,13 @@
from node:8-alpine as git

WORKDIR /eniapi

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"
@@ -8,9 +18,8 @@ ENV WS_SECRET ''
ENV CONTACT_DETAILS ''
ENV INSTANCE_NAME 'unnamed node'

COPY . /eniapi
RUN npm install -g pm2

RUN npm install -g pm2 && \
npm install
COPY --from=git /eniapi /eniapi

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

0 comments on commit af48ffa

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