-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): try with forge dockerfile
- Loading branch information
1 parent
00bf948
commit a11df0e
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
[build] | ||
dockerfile = "Dockerfile.forge" | ||
pre-build = [ | ||
"apt-get -y install apt-transport-https ca-certificates", | ||
"curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -", | ||
"echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list", | ||
"apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config protobuf-compiler nodejs yarn", | ||
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal", | ||
". /root/.cargo/env", | ||
"cargo install --git https://github.com/foundry-rs/foundry --locked forge", | ||
". /root/.cargo/env", | ||
"mv /root/.cargo/bin/forge /usr/local/bin", | ||
"forge --help" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
# Dockerfile.forge | ||
FROM ghcr.io/foundry-rs/foundry:latest as foundry | ||
|
||
ARG CROSS_BASE_IMAGE | ||
FROM $CROSS_BASE_IMAGE | ||
COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge |