-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 780 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 780 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
FROM rust:slim as builder
WORKDIR /app
# Install build dependencies
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*
# Copy source
COPY . .
# Build deterministically
RUN cargo build --release --workspace --exclude valori-ffi --exclude valori-embedded --locked
# Runtime stage
FROM debian:bookworm-slim
WORKDIR /app
# Install standard dependencies (ca-certificates for HTTPS, etc)
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
# Copy the binary
COPY --from=builder /app/target/release/valori-node /usr/local/bin/valori-node
# Expose the port (assuming 3000 based on previous checks, but defaulting to env var)
ENV PORT=3000
ENV VALORI_BIND=0.0.0.0:3000
EXPOSE 3000
CMD ["valori-node"]