Skip to content
Permalink
Browse files

add Dockerfile

  • Loading branch information...
thanhson1085 committed Jan 31, 2018
1 parent 5ecf47c commit f89d2589f90e3f152d9c9e7ea057ba0345efb508
Showing with 25 additions and 0 deletions.
  1. +7 −0 .dockerignore
  2. +18 −0 Dockerfile
@@ -0,0 +1,7 @@
*.log
node_modules
dapp/node_modules
.env
.*.sw*
.cache
.eslintcache
@@ -0,0 +1,18 @@
FROM node:8
MAINTAINER ToMo Team

RUN apt-get update && apt-get install -y libusb-1.0-0-dev
RUN npm install -g pm2 truffle bower

WORKDIR /build

COPY ./package.json /build
RUN npm install --production
COPY ./dapp /build/dapp
RUN cd ./dapp && npm install --production
RUN cd ./dapp && bower install --allow-root
COPY ./ /build

EXPOSE 80

CMD ["npm", "start"]

0 comments on commit f89d258

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