Skip to content

Commit

Permalink
Updating dockerfile (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam authored Jun 1, 2018
1 parent 4c0871f commit 686a817
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
FROM mhart/alpine-node:8.9.4
USER root

WORKDIR /opt/central-ledger
COPY . /opt/central-ledger
WORKDIR /opt/ml-api-adapter
COPY src /opt/ml-api-adapter/src
COPY config /opt/ml-api-adapter/config
COPY package.json /opt/ml-api-adapter/

RUN apk --no-cache add git
RUN apk add --no-cache -t build-dependencies make gcc g++ python libtool autoconf automake \
&& cd $(npm root -g)/npm \
&& npm install -g node-gyp
Expand All @@ -13,4 +17,4 @@ RUN npm install --production && \
RUN apk del build-dependencies

EXPOSE 3000
CMD node src/api/index.js
CMD node src/api/index.js

0 comments on commit 686a817

Please sign in to comment.