chore(docker): add dev Dockerfile for multi-stage Rust build

This commit is contained in:
Mukan Erkin TÖRÜK 2026-04-24 09:21:40 +03:00
parent 5430c34d9e
commit f7cff4513d

20
Dockerfile.dev Normal file
View file

@ -0,0 +1,20 @@
FROM rust:1.79-slim AS builder
RUN apt-get update && apt-get install -y \
pkg-config libssl-dev libclang-dev clang \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN cargo build --bin nu-node
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/target/debug/nu-node /usr/local/bin/nu-node
EXPOSE 9545 9546 30333
CMD ["nu-node"]