tokenbridge/monitor/Dockerfile
Przemyslaw Rzad 1da7340fb9
Monitor in docker (#109)
* Monitor in docker

* Update readme.

* Update crontab.example

* Removed examples from readme

* Update readme.
2019-06-17 09:22:53 +02:00

18 lines
451 B
Docker

FROM node:8
WORKDIR /mono
COPY package.json .
COPY contracts/package.json ./contracts/
COPY monitor/package.json ./monitor/
COPY yarn.lock .
RUN yarn install --frozen-lockfile --production
COPY ./contracts ./contracts
RUN yarn run compile:contracts
RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./build ./contracts/
COPY ./monitor ./monitor
WORKDIR /mono/monitor
CMD echo "To start the monitor run:" \
"yarn start"