tokenbridge/monitor/Dockerfile

21 lines
524 B
Docker
Raw Normal View History

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/
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
COPY ./monitor ./monitor
WORKDIR /mono/monitor
CMD echo "To start the monitor run:" \
"yarn check-and-start"