diff --git a/Dockerfile b/Dockerfile index 461bff97..7a9a4394 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,16 +11,18 @@ RUN poetry self update 1.8.2 # copy repo files WORKDIR /root/scripts COPY . . -# copy precompiled arm64 compilers if running on arm64 + +# if running on arm64 RUN if [ "$TARGETARCH" = "arm64" ]; then \ - echo "Building for ARM64 architecture"; \ + # copy precompiled arm64 compilers mkdir /root/.solcx; \ - mkdir /root/.vvm; \ cp ./linux_arm64_compilers/solc* /root/.solcx/; \ + # manually install vyper + mkdir /root/.vvm; \ pip install vyper==0.3.7; \ ln -s /usr/local/bin/vyper /root/.vvm/vyper-0.3.7; \ fi -# compilers for ammd64 will be downloaded by brownie later in this Dockerfile +# compilers for amd64 will be downloaded by brownie later in this Dockerfile # remove all temporary files to ensure correct compilation