-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 829 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (25 loc) · 829 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
27
28
29
30
31
32
33
34
35
# Palimpsest — Deterministic Crawl Kernel
# Multi-stage build: compile in Rust, run in minimal runtime.
# ── Build Stage ──
FROM rust:1.86-bookworm AS builder
WORKDIR /build
# Cache dependencies by copying manifests first.
COPY Cargo.toml Cargo.lock ./
COPY crates/ crates/
# Build release binary.
RUN cargo build --release -p palimpsest-cli && \
strip target/release/palimpsest
# ── Runtime Stage ──
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
libssl3 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/target/release/palimpsest /usr/local/bin/palimpsest
# Default data directory.
VOLUME /data
# Expose API + frontier server ports.
EXPOSE 8080 8090
ENTRYPOINT ["palimpsest"]
CMD ["--help"]