-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
1 changed file
with
16 additions
and
13 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,29 +1,32 @@ | ||
FROM rustlang/rust:nightly-bookworm-slim | ||
FROM debian:bookworm-slim | ||
|
||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libclang-dev \ | ||
libssl-dev \ | ||
pkg-config | ||
pkg-config \ | ||
openssl \ | ||
protobuf-compiler \ | ||
ca-certificates \ | ||
curl | ||
|
||
COPY ./src ./src | ||
COPY src/ src/ | ||
COPY Cargo.toml Cargo.toml | ||
COPY Cargo.lock Cargo.lock | ||
COPY rust-toolchain.toml rust-toolchain.toml | ||
|
||
RUN cargo build --release | ||
COPY state-reconstruct-fetcher/ state-reconstruct-fetcher/ | ||
COPY state-reconstruct-storage/ state-reconstruct-storage/ | ||
|
||
FROM debian:bookworm-slim | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
RUN set -eux; \ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
openssl | ||
RUN cargo build --release | ||
ENV PATH="/target/release:${PATH}" | ||
|
||
COPY --from=0 ./target/release/state-reconstruct /state-reconstruct | ||
COPY IZkSync.json IZkSync.json | ||
COPY abi/ abi/ | ||
COPY InitialState.csv InitialState.csv | ||
|
||
CMD ["/state-reconstruct", "reconstruct", "l1", "--http-url", "https://eth.llamarpc.com"] | ||
CMD ["state-reconstruct", "reconstruct", "l1", "--http-url", "https://eth.llamarpc.com"] |