From 199453e68af18c915720d64723da9f72fcb6bfe3 Mon Sep 17 00:00:00 2001
From: aon <21188659+aon@users.noreply.github.com>
Date: Mon, 20 May 2024 17:24:38 -0300
Subject: [PATCH] feat: add forge and cast installation in zk-environment
 Dockerfile

---
 docker/zk-environment/Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docker/zk-environment/Dockerfile b/docker/zk-environment/Dockerfile
index 6690d317d2a3..1ed60f4b95f1 100644
--- a/docker/zk-environment/Dockerfile
+++ b/docker/zk-environment/Dockerfile
@@ -125,6 +125,10 @@ RUN wget -c https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2 && \
     cd valgrind-3.20.0 && ./configure && make && make install && \
     cd ../ && rm -rf valgrind-3.20.0.tar.bz2 && rm -rf valgrind-3.20.0
 
+# Install foundry
+RUN cargo install --git https://github.com/foundry-rs/foundry \
+    --profile local --locked forge cast
+
 # Setup the environment
 ENV ZKSYNC_HOME=/usr/src/zksync
 ENV PATH="${ZKSYNC_HOME}/bin:${PATH}"