From c342cb7a1549e56277cadd376d64d4865666fcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20M=C3=A4kinen?= Date: Tue, 24 Oct 2023 09:00:26 +0300 Subject: [PATCH] Add Dockerfile --- Dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0a5ed1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM rustlang/rust:nightly-bookworm-slim + +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + build-essential \ + libclang-dev \ + libssl-dev \ + pkg-config + +COPY ./src ./src +COPY Cargo.toml Cargo.toml +COPY Cargo.lock Cargo.lock + +RUN cargo build --release + +FROM debian:bookworm-slim + +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + ca-certificates \ + openssl + +COPY --from=0 ./target/release/state-reconstruct /state-reconstruct +COPY IZkSync.json IZkSync.json +COPY InitialState.csv InitialState.csv + +CMD ["/state-reconstruct", "reconstruct", "l1", "--http-url", "https://eth.llamarpc.com"]