Skip to content

Commit

Permalink
feat(release): install forge in prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Feb 23, 2024
1 parent b90e1e2 commit 0fa93e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 5 additions & 6 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH",
"curl -L https://foundry.paradigm.xyz | bash",
". /root/.bashrc && foundryup"
]
dockerfile = "./Dockerfile.build"
# pre-build = [
# "dpkg --add-architecture $CROSS_DEB_ARCH",
# "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH",
# ]
6 changes: 0 additions & 6 deletions Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ FROM $CROSS_BASE_IMAGE
COPY --from=foundry /usr/local/bin/forge /usr/local/bin/forge

ARG DEBIAN_FRONTEND=noninteractive

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 protobuf-compiler yarn
RUN add-apt-repository ppa:ethereum/ethereum
RUN apt-get update
Expand Down

0 comments on commit 0fa93e3

Please sign in to comment.