-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 1022 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 1022 Bytes
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
# ─── Build stage ─────────────────────────────────────────────────
FROM rust:1.86-slim-bookworm AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config libssl-dev ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY Cargo.toml Cargo.lock* ./
COPY src/ src/
COPY examples/ examples/
# Build release binary
RUN cargo build --release
# ─── Runtime stage ───────────────────────────────────────────────
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/shardlake /usr/local/bin/shardlake
ENTRYPOINT ["shardlake"]
CMD ["run", "--network", "testnet", "--start-block", "100000000", "--shards", "0,3", "--query", "intent"]