forked from darshanDevrai/brahmand
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.test
More file actions
27 lines (20 loc) · 684 Bytes
/
Dockerfile.test
File metadata and controls
27 lines (20 loc) · 684 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
# Multi-stage build for testing
FROM rust:1.85 as builder
WORKDIR /build
COPY . .
# Build release binary (--locked ensures Cargo.lock versions are used,
# preventing transitive dep updates from pulling in crates that require
# a newer rustc than the image provides)
RUN cargo build --release --locked --bin clickgraph
# Runtime stage
FROM debian:bookworm-slim
# Install runtime dependencies
RUN apt-get update && \
apt-get install -y ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy binary from builder
COPY --from=builder /build/target/release/clickgraph /app/clickgraph
# Default command
ENTRYPOINT ["/app/clickgraph"]
CMD ["--http-port", "7475"]