From a1b85a7cc1c36a4b2c453cbb038829ee1c91d5a3 Mon Sep 17 00:00:00 2001 From: rzadp Date: Thu, 23 May 2019 14:24:46 +0200 Subject: [PATCH] Changed order in Dockerfile.e2e to utilize docker build cache --- Dockerfile.e2e | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile.e2e b/Dockerfile.e2e index 4653c0fa..021c145a 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -9,12 +9,18 @@ COPY ui-e2e/package.json ./ui-e2e/ COPY monitor/package.json ./monitor/ COPY contracts/package.json ./contracts/ COPY ui/lib/web3-eth/index.js ./ui/lib/web3-eth/index.js + COPY yarn.lock . - RUN yarn install -COPY . . +COPY contracts contracts RUN yarn workspace poa-parity-bridge-contracts run compile -RUN cd contracts-2.2.0 && rm -f package-lock.json && npm install --silent && npm install --silent truffle@4.1.11 && npm run compile && cd deploy && rm -f package-lock.json && npm install --silent && npm install --silent web3@1.0.0-beta.33 -RUN yarn workspace ui run compile:contracts && yarn workspace ui run postinstall RUN cd contracts/deploy && rm -f package-lock.json && npm install + +COPY contracts-2.2.0 contracts-2.2.0 +RUN cd contracts-2.2.0 && rm -f package-lock.json && npm install --silent && npm install --silent truffle@4.1.11 && npm run compile && cd deploy && rm -f package-lock.json && npm install --silent && npm install --silent web3@1.0.0-beta.33 + +COPY ui ui +RUN yarn workspace ui run compile:contracts && yarn workspace ui run postinstall + +COPY . .