2019-05-06 14:12:53 +03:00
|
|
|
FROM node:8
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y build-essential
|
|
|
|
RUN apt-get install -y libc6-dev
|
|
|
|
RUN apt-get install -y libc6-dev-i386
|
|
|
|
RUN apt-get install -y wget
|
|
|
|
RUN apt-get clean
|
|
|
|
|
2019-05-23 12:11:00 +03:00
|
|
|
WORKDIR /mono
|
2019-05-06 14:12:53 +03:00
|
|
|
COPY package.json .
|
2019-05-23 12:11:00 +03:00
|
|
|
COPY contracts/package.json ./contracts/
|
2019-07-12 15:37:41 +03:00
|
|
|
COPY commons/package.json ./commons/
|
2019-05-23 12:11:00 +03:00
|
|
|
COPY oracle/package.json ./oracle/
|
|
|
|
COPY yarn.lock .
|
2019-06-14 16:50:22 +03:00
|
|
|
RUN yarn install --production --frozen-lockfile
|
2019-05-27 10:22:08 +03:00
|
|
|
|
|
|
|
COPY ./contracts ./contracts
|
|
|
|
RUN yarn run compile:contracts
|
|
|
|
RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./build ./contracts/
|
|
|
|
|
2019-07-12 15:37:41 +03:00
|
|
|
COPY ./commons ./commons
|
|
|
|
|
2019-05-23 12:11:00 +03:00
|
|
|
COPY ./oracle ./oracle
|
2019-09-13 10:11:38 +03:00
|
|
|
|
2019-05-23 12:11:00 +03:00
|
|
|
WORKDIR /mono/oracle
|
2019-05-06 14:12:53 +03:00
|
|
|
CMD echo "To start a bridge process run:" \
|
2019-09-13 10:11:38 +03:00
|
|
|
"ORACLE_VALIDATOR_ADDRESS=<validator address> ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build"
|