# Behavior Runtime - Library Package
#
# Note: This is a library package, not a standalone service.
# This Dockerfile is provided as a reference for applications that use
# the behavior runtime.
#
# To use in your application:
# FROM rust:1.80 as builder
# WORKDIR /app
# COPY . .
# RUN cargo build --release --bin your_app
#
# FROM debian:bookworm-slim
# COPY --from=builder /app/target/release/your_app /usr/local/bin/
# CMD ["your_app"]
FROM rust:1.80 as builder
WORKDIR /app
# Copy workspace dependencies
COPY Cargo.toml Cargo.lock ./
COPY packages/behavior-runtime ./packages/behavior-runtime
COPY packages/core ./packages/core
COPY packages/messaging ./packages/messaging
# Build the library (for validation)
RUN cargo build --release -p metabots-behavior-runtime
# No runtime image needed - this is a library package
# Applications using this library should create their own Dockerfile