2019-06-17 10:22:53 +03:00
|
|
|
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:" \
|
2019-07-09 20:26:40 +03:00
|
|
|
"yarn check-and-start"
|