Files
leleka/deploy/Dockerfile.linux-check
T

14 lines
1018 B
Docker

# Checks that the leleka workers and the control plane build on Linux x64 and that the unit tests of the runtime crates
# pass (tests that need a model or hardware skip themselves). The control plane's own tests need files that
# .dockerignore leaves out, so it is only built here.
# docker build -f deploy/Dockerfile.linux-check .
FROM rust:1.99-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends cmake pkg-config && rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/src/target \
cargo test --release -p leleka-cpu-sys -p leleka-cpu-kernels -p leleka-gptoss -p leleka-cpu-worker -p leleka-gguf \
-p leleka-tokenizer -p leleka-shm -p leleka-npu-service -p leleka-gptoss-npu -p leleka-npu-worker \
-p leleka-igpu -p leleka-gptoss-igpu -p leleka-igpu-worker \
&& cargo build --release -p leleka-control-plane -p leleka-cpu-worker -p leleka-igpu-worker -p leleka-npu-worker -p leleka-npu-service