Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
21 lines
701 B
Docker
21 lines
701 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 rust-toolchain.toml ./
|
|
COPY manifests/ ./manifests/
|
|
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/control-plane/target/${RUST_TARGET}/release/strata-next /strata-next
|
|
ENTRYPOINT ["/strata-next"]
|