2021-05-08 09:50:46 -06:00
|
|
|
FROM node:12 as contracts
|
2020-07-14 21:53:05 +07:00
|
|
|
|
|
|
|
WORKDIR /mono
|
|
|
|
|
|
|
|
COPY contracts/package.json contracts/package-lock.json ./contracts/
|
|
|
|
|
|
|
|
WORKDIR /mono/contracts
|
|
|
|
RUN npm install --only=prod
|
|
|
|
|
|
|
|
COPY ./contracts/truffle-config.js ./
|
|
|
|
COPY ./contracts/contracts ./contracts
|
|
|
|
RUN npm run compile
|
|
|
|
|
2021-05-08 09:50:46 -06:00
|
|
|
FROM node:12
|
2019-06-17 09:22:53 +02:00
|
|
|
|
|
|
|
WORKDIR /mono
|
|
|
|
COPY package.json .
|
2020-07-14 21:53:05 +07:00
|
|
|
COPY --from=contracts /mono/contracts/build ./contracts/build
|
2019-07-12 14:49:46 +02:00
|
|
|
COPY commons/package.json ./commons/
|
2019-06-17 09:22:53 +02:00
|
|
|
COPY monitor/package.json ./monitor/
|
|
|
|
COPY yarn.lock .
|
2020-07-14 21:53:05 +07:00
|
|
|
RUN NOYARNPOSTINSTALL=1 yarn install --frozen-lockfile --production
|
2019-06-17 09:22:53 +02:00
|
|
|
|
2019-07-12 14:49:46 +02:00
|
|
|
COPY ./commons ./commons
|
2019-06-17 09:22:53 +02:00
|
|
|
COPY ./monitor ./monitor
|
2019-09-13 09:11:38 +02:00
|
|
|
|
2019-06-17 09:22:53 +02:00
|
|
|
WORKDIR /mono/monitor
|
2020-02-21 16:56:55 +03:00
|
|
|
CMD echo "To start the monitor web service run:" \
|
|
|
|
"yarn start" \
|
|
|
|
"To run monitor scripts run:" \
|
|
|
|
"yarn check-all"
|