Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Jan 31, 2018
1 parent 5ecf47c commit f89d258
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
@@ -0,0 +1,7 @@
*.log
node_modules
dapp/node_modules
.env
.*.sw*
.cache
.eslintcache
18 changes: 18 additions & 0 deletions Dockerfile
@@ -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.