-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
899794e
commit 193eeea
Showing
7 changed files
with
41 additions
and
25 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 +1,2 @@ | ||
[build] | ||
dockerfile = "Dockerfile.build" | ||
dockerfile = "./Dockerfile.build" |
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
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,18 +1,22 @@ | ||
ARG CROSS_BASE_IMAGE | ||
# Dockerfile.forge | ||
|
||
FROM ghcr.io/foundry-rs/foundry:latest as foundry | ||
|
||
FROM $CROSS_BASE_IMAGE | ||
COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
# Install Node.js 14.x and Yarn | ||
RUN apt-get update \ | ||
&& apt-get install -y curl \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \ | ||
&& apt-get install -y nodejs \ | ||
&& npm install -g yarn \ | ||
&& apt-get clean | ||
|
||
RUN apt-get update && apt-get install -y unzip | ||
|
||
# Install Protobuf compiler v3 | ||
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip \ | ||
&& unzip protoc-3.15.8-linux-x86_64.zip -d /usr/local \ | ||
&& chmod +x /usr/local/bin/protoc | ||
|
||
RUN apt-get update && apt-get install -y gnupg2 apt-transport-https ca-certificates software-properties-common | ||
RUN curl -sS 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 | ||
RUN mkdir -p /etc/apt/keyrings | ||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg | ||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y libclang-dev pkg-config protobuf-compiler nodejs yarn | ||
RUN add-apt-repository ppa:ethereum/ethereum | ||
RUN apt-get update | ||
RUN apt-get install -y solc |
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
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