diff --git a/Dockerfile b/Dockerfile index 301b7bc7..1d534d13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,9 @@ 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 . . + RUN yarn workspace ui run compile:contracts +RUN cd contracts/deploy && rm -f package-lock.json && npm install diff --git a/ui/package.json b/ui/package.json index 9bd0d195..99541e5e 100644 --- a/ui/package.json +++ b/ui/package.json @@ -45,7 +45,7 @@ "eject": "react-app-rewired eject", "predeploy": "npm run build", "deploy": "gh-pages -d build -o origin", - "compile:contracts": "cd submodules/poa-bridge-contracts && npm install && npm run compile && cd ../../ && rm -r -f src/contracts && cp -r submodules/poa-bridge-contracts/build/contracts src/contracts", + "compile:contracts": "rm -r -f src/contracts && cp -r ../contracts/build/contracts src/contracts", "postinstall": "(cp lib/web3-eth/index.js ../node_modules/web3-eth/src || cp lib/web3-eth/index.js ./node_modules/web3-eth/src)" }, "devDependencies": {