Build foundry container locally

Former-commit-id: f3f40339379a91aaba5f9b3b46618a61a8414af2
This commit is contained in:
David Boreham
2023-01-22 22:19:23 -07:00
parent e799c9eaef
commit e183e2a880
4 changed files with 9 additions and 1 deletions
@@ -1,4 +1,6 @@
FROM ghcr.io/foundry-rs/foundry
# Use locally build foundry base image to work around there being
# no aarm64 image published.
FROM foundry-rs/foundry:local
RUN apk update ; apk add --no-cache --allow-untrusted ca-certificates curl bash git jq
RUN apk add --no-cache --upgrade grep
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Build foundry-rs/foundry
# HACK below : TARGETARCH needs to be derived from the host environment
docker build -t foundry-rs/foundry:local --build-arg TARGETARCH=arm64 ${CERC_REPO_BASE_DIR}/foundry