26382a7ac6
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
FROM rust:1-bookworm AS builder
|
|
|
|
WORKDIR /app
|
|
# All compile-time data (compliance mappings, LoCoMo reference suite, the
|
|
# deprecation register) lives under rust/data/ so this single COPY — and
|
|
# `cargo publish` — see everything `include_str!` needs.
|
|
COPY rust ./rust
|
|
|
|
# The cloud API is a feature-gated example target (`required-features = ["cloud-server"]`),
|
|
# so it must be built with `--example`; the artifact lands in target/release/examples/.
|
|
RUN cd rust && cargo build --release --features cloud-server --example lean-ctx-cloud-api
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
# ca-certificates: outbound TLS (SMTP, etc.). fonts-dejavu-core: resvg rasterizes the
|
|
# Wrapped OG card to PNG and needs a real sans family present, or headline text renders blank.
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates fonts-dejavu-core \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /app/rust/target/release/examples/lean-ctx-cloud-api /usr/local/bin/lean-ctx-cloud-api
|
|
|
|
ENV LEANCTX_CLOUD_BIND_HOST=0.0.0.0
|
|
ENV LEANCTX_CLOUD_BIND_PORT=8088
|
|
|
|
EXPOSE 8088
|
|
|
|
CMD ["lean-ctx-cloud-api"]
|
|
|