Files
leleka/deploy/Dockerfile.static-cli
T
Pavlo RatushnyiandClaude Sonnet 5.5 e5c7c32a17 fix(deploy): the static CLI image context now carries the pinned chat template
control-plane/src/prompt.rs include_str!s engine/strata/serve/chat_template.jinja, but
.dockerignore kept only engine/strata/LICENSE and Dockerfile.static-cli copied only
that file, so docker build failed with 'couldn't read ... chat_template.jinja' (the
linux.yml CLI image step uses this Dockerfile). Re-include and COPY the template.
Checked by exporting the build context with BuildKit (LICENSE and the template are
the only engine files) and cargo check of strata-next from exactly that file set.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 02:08:57 +02:00

25 lines
915 B
Docker

FROM rust:1.99-bookworm AS build
ARG RUST_TARGET=x86_64-unknown-linux-musl
RUN apt-get update \
&& apt-get install -y --no-install-recommends musl-tools cmake \
&& rm -rf /var/lib/apt/lists/*
RUN rustup target add "${RUST_TARGET}"
WORKDIR /src
ENV CARGO_TARGET_DIR=/src/control-plane/target
COPY Cargo.toml Cargo.lock rust-toolchain.toml ./
COPY crates/ ./crates/
COPY manifests/ ./manifests/
COPY desktop-core/ ./desktop-core/
COPY control-plane/ ./control-plane/
COPY engine/strata/LICENSE ./engine/strata/LICENSE
COPY engine/strata/serve/chat_template.jinja ./engine/strata/serve/chat_template.jinja
RUN cargo build --manifest-path control-plane/Cargo.toml --locked --release \
--target "${RUST_TARGET}" --bin strata-next
FROM scratch
ARG RUST_TARGET=x86_64-unknown-linux-musl
COPY --from=build /src/control-plane/target/${RUST_TARGET}/release/strata-next /strata-next
ENTRYPOINT ["/strata-next"]