forked from matter-labs/anvil-zksync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (25 loc) · 877 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:22.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN=true
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-2024-08-01 && \
rustup default nightly-2024-08-01
WORKDIR /usr/src/anvil-zksync
COPY . .
RUN cargo build --release
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y \
ca-certificates \
&& \
rm -rf /var/lib/apt/lists/*
EXPOSE 8011
WORKDIR /usr/local/bin
COPY --from=builder /usr/src/anvil-zksync/target/release/anvil-zksync .
ENTRYPOINT [ "anvil-zksync" ]