@@ -8,7 +8,7 @@ RUN <<EOF
88set -eu
99apt-get update && apt-get install -y --no-install-recommends curl ca-certificates git
1010curl -L https://foundry.paradigm.xyz | bash
11- ~/.foundry/bin/foundryup --install stable
11+ ~/.foundry/bin/foundryup --install v1.5.0
1212install -Dm755 ~/.foundry/bin/* /usr/local/bin/
1313EOF
1414# cargo binstall (to install just)
3434 xxd jq sqlite3; \
3535 rm -rf /var/cache/apt;
3636
37+ # install pnpm
38+ RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
39+ ENV PNPM_HOME="/root/.local/share/pnpm"
40+ ENV PATH="$PNPM_HOME:$PATH"
41+
3742# install foundry
3843COPY --from=tools /usr/local/bin/forge /usr/local/bin/
3944COPY --from=tools /usr/local/bin/cast /usr/local/bin/
8186 --mount=type=cache,target=cartesi-rollups/contracts/cache,sharing=locked \
8287 --mount=type=cache,target=prt/contracts/out,sharing=locked \
8388 --mount=type=cache,target=prt/contracts/cache,sharing=locked \
84- just -f test/programs/justfile build-programs
89+ just -f test/programs/justfile build-programs && \
90+ just -f test/programs/justfile build-honeypot-snapshot && \
91+ just -f cartesi-rollups/contracts/justfile build-devnet
8592
8693# copy everything else
8794COPY \
@@ -105,5 +112,4 @@ RUN \
105112 just build-rust-workspace; \
106113 cp target/debug/cartesi-rollups-prt-node .
107114
108- # because of `--mount`, we need to do this.
109- RUN mkdir -p target/debug && mv cartesi-rollups-prt-node target/debug/
115+ RUN mkdir -p target/debug && mv cartesi-rollups-prt-node target/debug/
0 commit comments