From 8fbdb8e9ab9cbc0997229ae6d5732017702767d1 Mon Sep 17 00:00:00 2001 From: Michal Kimle Date: Mon, 24 Jul 2023 16:22:49 +0200 Subject: [PATCH] Fix packaging Docker image --- docker/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index b6562ffed5..9573d4c33f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,12 +9,13 @@ ENV appDir="/app" \ RUN apk add --update --no-cache git rsync docker $([ $(arch) == "aarch64" ] && echo "python3 make g++") && \ yarn global add npm && \ # Download both solidity compilers as per: https://github.com/nomiclabs/hardhat/issues/1280#issuecomment-949822371 - mkdir -p /root/.cache/hardhat-nodejs/compilers/wasm && \ - wget -O /root/.cache/hardhat-nodejs/compilers/wasm/soljson-v0.8.9+commit.e5eed63a.js https://solc-bin.ethereum.org/wasm/soljson-v0.8.9+commit.e5eed63a.js && \ - wget -O /root/.cache/hardhat-nodejs/compilers/wasm/list.json https://solc-bin.ethereum.org/wasm/list.json && \ - mkdir -p /root/.cache/hardhat-nodejs/compilers/linux-amd64 && \ - wget -O /root/.cache/hardhat-nodejs/compilers/linux-amd64/solc-linux-amd64-v0.8.9+commit.e5eed63a https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.9+commit.e5eed63a && \ - wget -O /root/.cache/hardhat-nodejs/compilers/linux-amd64/list.json https://solc-bin.ethereum.org/linux-amd64/list.json + mkdir -p /root/.cache/hardhat-nodejs/compilers-v2/wasm && \ + wget -O /root/.cache/hardhat-nodejs/compilers-v2/wasm/soljson-v0.8.9+commit.e5eed63a.js https://solc-bin.ethereum.org/wasm/soljson-v0.8.9+commit.e5eed63a.js && \ + wget -O /root/.cache/hardhat-nodejs/compilers-v2/wasm/list.json https://solc-bin.ethereum.org/wasm/list.json && \ + mkdir -p /root/.cache/hardhat-nodejs/compilers-v2/linux-amd64 && \ + wget -O /root/.cache/hardhat-nodejs/compilers-v2/linux-amd64/list.json https://solc-bin.ethereum.org/linux-amd64/list.json && \ + touch /root/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.8.9+commit.e5eed63a && \ + touch /root/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.8.9+commit.e5eed63a.does.not.work COPY docker/scripts/dist/*.js ${appDir}/ COPY docker/scripts/dist/*.map ${appDir}/