Skip to content

Commit ac2df86

Browse files
committed
Add cast to deployer utils
1 parent 28376d6 commit ac2df86

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

espresso/docker/op-stack/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apk add --no-cache \
1515
# Install mise for toolchain management
1616
RUN curl https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh
1717

18-
# Install yq and dasel
18+
# Install yq, dasel and foundry
1919
RUN case "$TARGETARCH" in \
2020
"amd64") ARCH="amd64" ;; \
2121
"arm64") ARCH="arm64" ;; \
@@ -24,7 +24,13 @@ RUN case "$TARGETARCH" in \
2424
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$ARCH -O /usr/local/bin/yq && \
2525
chmod +x /usr/local/bin/yq && \
2626
wget https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_$ARCH -O /usr/local/bin/dasel && \
27-
chmod +x /usr/local/bin/dasel
27+
chmod +x /usr/local/bin/dasel && \
28+
wget https://github.com/foundry-rs/foundry/releases/download/v1.4.4/foundry_v1.4.4_linux_$ARCH.tar.gz -O foundry.tgz && \
29+
tar -xzf foundry.tgz -C /usr/local/bin && \
30+
chmod +x /usr/local/bin/chisel && \
31+
chmod +x /usr/local/bin/anvil && \
32+
chmod +x /usr/local/bin/cast && \
33+
chmod +x /usr/local/bin/forge
2834

2935
# Install versioned toolchain
3036
COPY ./mise.toml .
@@ -165,6 +171,7 @@ FROM $TARGET_BASE_IMAGE AS op-deployer-target
165171
RUN apk add jq curl bash openssl
166172
COPY --from=builder /usr/local/bin/dasel /usr/local/bin/
167173
COPY --from=builder /usr/local/bin/yq /usr/local/bin/
174+
COPY --from=builder /usr/local/bin/cast /usr/local/bin/
168175
COPY --from=op-deployer-builder /app/op-deployer/bin/op-deployer /usr/local/bin
169176
COPY /packages/contracts-bedrock/forge-artifacts /contracts
170177
ENV DEPLOYER_ARTIFACTS_LOCATOR=/contracts

0 commit comments

Comments
 (0)