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-05-06 13:12:53 +02:00
|
|
|
|
2020-09-02 17:43:48 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y build-essential libc6-dev libc6-dev-i386 wget && \
|
|
|
|
apt-get clean
|
2019-05-06 13:12:53 +02:00
|
|
|
|
2019-05-23 11:11:00 +02:00
|
|
|
WORKDIR /mono
|
2019-05-06 13:12:53 +02:00
|
|
|
COPY package.json .
|
2020-07-14 21:53:05 +07:00
|
|
|
COPY --from=contracts /mono/contracts/build ./contracts/build
|
2019-07-12 14:37:41 +02:00
|
|
|
COPY commons/package.json ./commons/
|
2019-05-23 11:11:00 +02:00
|
|
|
COPY oracle/package.json ./oracle/
|
|
|
|
COPY yarn.lock .
|
2020-07-14 21:53:05 +07:00
|
|
|
RUN NOYARNPOSTINSTALL=1 yarn install --frozen-lockfile --production
|
2019-05-27 09:22:08 +02:00
|
|
|
|
2019-07-12 14:37:41 +02:00
|
|
|
COPY ./commons ./commons
|
2019-05-23 11:11:00 +02:00
|
|
|
COPY ./oracle ./oracle
|
2019-09-13 09:11:38 +02:00
|
|
|
|
2019-05-23 11:11:00 +02:00
|
|
|
WORKDIR /mono/oracle
|
2019-05-06 13:12:53 +02:00
|
|
|
CMD echo "To start a bridge process run:" \
|
2019-09-13 09:11:38 +02:00
|
|
|
"ORACLE_VALIDATOR_ADDRESS=<validator address> ORACLE_VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build"
|