FROM rust:1.93-alpine AS builder
RUN apk add --no-cache musl-dev
WORKDIR /build
COPY . .
RUN cargo build --release --bin weaver --features native
FROM alpine:3.21
RUN apk add --no-cache ca-certificates
COPY --from=builder /build/target/release/weaver /usr/local/bin/weaver
ENTRYPOINT ["weaver"]
CMD ["kernel", "status"]