FROM rust:1.94-bookworm AS builder

WORKDIR /app
COPY . .
RUN cargo build --release -p compliance-mcp

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*

COPY --from=builder /app/target/release/compliance-mcp /usr/local/bin/compliance-mcp

EXPOSE 8090

ENV MCP_PORT=8090

ENTRYPOINT ["compliance-mcp"]
