forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dockerfile and step in CI to build snapshots-creator image (mat…
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# syntax=docker/dockerfile:experimental | ||
FROM debian:bookworm-slim as builder | ||
|
||
WORKDIR /usr/src/zksync | ||
COPY . . | ||
|
||
RUN apt-get update && apt-get install -y curl clang openssl libssl-dev gcc g++ \ | ||
pkg-config build-essential libclang-dev linux-libc-dev liburing-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y && \ | ||
rustup install nightly-2023-08-21 && \ | ||
rustup default nightly-2023-08-21 | ||
|
||
RUN cargo build --release --bin snapshots_creator | ||
|
||
FROM debian:bookworm-slim | ||
|
||
RUN apt-get update && apt-get install -y curl libpq5 liburing-dev ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=builder /usr/src/zksync/target/release/snapshots_creator /usr/bin | ||
|
||
ENTRYPOINT ["snapshots_creator"] |
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