Skip to content

Commit e72dc2a

Browse files
committed
feat: add CPU prover dockerfile
1 parent 4a94ad7 commit e72dc2a

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM ubuntu:24.04 AS builder
2+
3+
RUN apt-get update -y && apt-get upgrade -y
4+
5+
# Install basic packages
6+
RUN apt-get install build-essential curl wget git pkg-config -y
7+
# Install dev-packages
8+
RUN apt-get install libclang-dev libssl-dev llvm -y
9+
10+
# Install Rust
11+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
12+
ENV PATH="/root/.cargo/bin:${PATH}"
13+
ENV CARGO_HOME=/root/.cargo
14+
15+
COPY ./prover .
16+
17+
RUN cargo build --release
18+
19+
FROM ubuntu:24.04 AS runtime
20+
21+
COPY --from=builder /target/release/prover /usr/local/bin/
22+
23+
ENTRYPOINT ["prover"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
assets/
2+
docs/
3+
l2geth/
4+
rpc-gateway/
5+
*target/*

0 commit comments

Comments
 (0)