Skip to content

Commit

Permalink
chore(docker): try with forge dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Oct 27, 2023
1 parent 00bf948 commit a11df0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions Cross.toml
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"
]
7 changes: 7 additions & 0 deletions Dockerfile.forge
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

0 comments on commit a11df0e

Please sign in to comment.