-
Notifications
You must be signed in to change notification settings - Fork 52
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
d952e2b
commit 38d4d1a
Showing
1 changed file
with
9 additions
and
7 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,14 +1,16 @@ | ||
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 and Yarn | ||
RUN apt-get update \ | ||
&& apt-get install -y curl \ | ||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
&& apt-get install -y nodejs \ | ||
&& npm install -g yarn \ | ||
&& apt-get clean | ||
|
||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.20.0/install.sh | bash \ | ||
&& . ~/.nvm/nvm.sh \ | ||
&& nvm install 18 \ | ||
&& nvm use 18 | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y protobuf-compiler yarn | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y protobuf-compiler |