Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnp authored Oct 25, 2024
1 parent 3dfd290 commit 99123dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99123dd

Please sign in to comment.