2019-06-17 10:22:53 +03:00
|
|
|
FROM node:8
|
|
|
|
|
|
|
|
WORKDIR /mono
|
|
|
|
COPY package.json .
|
|
|
|
COPY contracts/package.json ./contracts/
|
2019-07-12 15:49:46 +03:00
|
|
|
COPY commons/package.json ./commons/
|
2019-06-17 10:22:53 +03:00
|
|
|
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/
|
|
|
|
|
2019-07-12 15:49:46 +03:00
|
|
|
COPY ./commons ./commons
|
|
|
|
|
2019-06-17 10:22:53 +03:00
|
|
|
COPY ./monitor ./monitor
|
2019-09-13 10:11:38 +03:00
|
|
|
ARG DOT_ENV_PATH=./monitor/.env
|
|
|
|
COPY ${DOT_ENV_PATH} ./monitor/.env
|
|
|
|
|
2019-06-17 10:22:53 +03:00
|
|
|
WORKDIR /mono/monitor
|
|
|
|
CMD echo "To start the monitor run:" \
|
2019-07-09 20:26:40 +03:00
|
|
|
"yarn check-and-start"
|