forked from farcasterxyz/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.foundry
More file actions
20 lines (15 loc) · 838 Bytes
/
Dockerfile.foundry
File metadata and controls
20 lines (15 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# syntax=docker/dockerfile:1.4
# Used for local development so that we have binaries compiled for the local
# architecture, since Foundry only publishes Docker images for AMD, and we don't
# want to have slow emulation on Apple Silicon.
FROM ubuntu:latest
RUN apt-get update -y && apt-get install -y bash curl git gzip netcat
# Foundry only keeps the latest 3 nightly releases available, removing older
# ones. We host the artifacts ourselves to ensure they are always there.
#
# This also makes the build very fast (building from source takes ~10 minutes on an M2 Max)
ARG TARGETARCH COMMIT_HASH=577dae3f632b392856d1d62a5016c765fadd872d
RUN curl --proto '=https' --tlsv1.2 -sSf \
"https://download.farcaster.xyz/foundry/foundry_${COMMIT_HASH}_linux_${TARGETARCH}.tar.gz" \
| tar -xzf - -C /usr/local/bin
ENV RUST_BACKTRACE=full