Files
leleka/deploy/Dockerfile.static-cli
T
Pavlo Ratushnyi 679572a13e
Linux / verify (pull_request) Successful in 1m59s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Failing after 2m12s
Linux / linux-static-cli (pull_request) Failing after 3m30s
Linux / release-cli (pull_request) Skipped
ci: isolate systemd lifecycle smoke in Linux container
2026-10-05 22:22:16 +02:00

24 lines
775 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
COPY Cargo.toml Cargo.lock ./
COPY rust-toolchain.toml ./
COPY manifests/ ./manifests/
COPY crates/ ./crates/
COPY desktop-core/ ./desktop-core/
COPY control-plane/ ./control-plane/
COPY engine/strata/LICENSE ./engine/strata/LICENSE
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/target/${RUST_TARGET}/release/strata-next /strata-next
ENTRYPOINT ["/strata-next"]