FROM rust:1.94-slim

WORKDIR /sdk

COPY sdk/rust/Cargo.toml sdk/rust/Cargo.lock ./
COPY sdk/rust/src/ ./src/
COPY sdk/rust/tests/ ./tests/

RUN cargo build --tests

CMD ["cargo", "test", "--test", "integration_test", "--", "--test-threads=1"]
