From 8d13966c702890b453cc76dbb146fafd0d3ce297 Mon Sep 17 00:00:00 2001 From: d3v-null Date: Fri, 27 Sep 2024 05:38:55 +0000 Subject: [PATCH] build with 1 cpu --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b902815..81437a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,9 +64,9 @@ ADD . /mwalib WORKDIR /mwalib # build python module and examples -RUN maturin build --verbose --features=python && \ +RUN cargo build -j1 --verbose --examples --features=examples && \ + maturin build -j1 --verbose --features=python && \ python -m pip install $(ls -1 target/wheels/*.whl | tail -n 1) && \ - cargo build --verbose --examples --features=examples && \ rm -rf ${CARGO_HOME}/registry ENV PATH=${PATH}:/mwalib/target/debug/examples/