Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Adding Dockerfile #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.log
node_modules
dapp/node_modules
.env
.*.sw*
.cache
.eslintcache
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]