diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..808a24ba --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +*.log +node_modules +dapp/node_modules +.env +.*.sw* +.cache +.eslintcache diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ba25e45d --- /dev/null +++ b/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"]