2020-09-02 17:43:48 +03:00
|
|
|
FROM node:10 as contracts
|
2020-07-14 17:53:05 +03: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
|
|
|
|
|
2020-09-02 17:43:48 +03:00
|
|
|
FROM node:10
|
2019-05-20 16:48:43 +03:00
|
|
|
|
|
|
|
WORKDIR /mono
|
|
|
|
COPY package.json .
|
2020-07-14 17:53:05 +03:00
|
|
|
COPY --from=contracts /mono/contracts/build ./contracts/build
|
2020-09-02 17:43:48 +03:00
|
|
|
COPY commons/package.json ./commons/
|
2019-05-20 16:48:43 +03:00
|
|
|
COPY oracle-e2e/package.json ./oracle-e2e/
|
2019-08-27 17:26:49 +03:00
|
|
|
COPY monitor-e2e/package.json ./monitor-e2e/
|
2019-05-21 10:26:16 +03:00
|
|
|
|
2019-05-23 15:24:46 +03:00
|
|
|
COPY yarn.lock .
|
2020-07-14 17:53:05 +03:00
|
|
|
RUN NOYARNPOSTINSTALL=1 yarn install --frozen-lockfile --production
|
|
|
|
|
|
|
|
COPY ./contracts/deploy ./contracts/deploy
|
2019-05-27 10:22:08 +03:00
|
|
|
RUN yarn install:deploy
|
2019-05-23 15:24:46 +03:00
|
|
|
|
2020-07-14 17:53:05 +03:00
|
|
|
COPY commons/ ./commons/
|
|
|
|
COPY oracle-e2e/ ./oracle-e2e/
|
|
|
|
COPY monitor-e2e/ ./monitor-e2e/
|
|
|
|
COPY e2e-commons/ ./e2e-commons/
|