From fdbdb15272aa11f53131de7392934ee4d8a8baab Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Sun, 11 May 2025 22:56:09 +0100 Subject: [PATCH] add testing when building Dockerfile --- docker/sp1/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker/sp1/Dockerfile b/docker/sp1/Dockerfile index 8f117f6..2864393 100644 --- a/docker/sp1/Dockerfile +++ b/docker/sp1/Dockerfile @@ -30,7 +30,15 @@ ENV PATH="${SP1UP_HOME}/bin:${SP1_HOME}/bin:$PATH" # Verify SP1 installation (optional here, as script does it, but good for sanity) RUN cargo prove --version -RUN rustup toolchain list | grep succinct || (echo "SP1 Toolchain (succinct) not found after script execution!" && exit 1) + +# Copy the entire ere project context +# The WORKDIR is /app from the base image +WORKDIR /app +COPY . . + +# --- Test Execution Step (for the ere-sp1 library) --- +RUN echo "Running tests for ere-sp1 library..." && \ + cargo test --release -p ere-sp1 --lib -- --color always CMD ["/bin/bash"]