From faf940b89fc20dbe805f67724df4e0ecc8f03e59 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 7 Mar 2022 08:03:41 +0100 Subject: [PATCH] tools/docker: Fix python alpine build --- tools/docker/python/amd64/alpine.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/docker/python/amd64/alpine.Dockerfile b/tools/docker/python/amd64/alpine.Dockerfile index 435e6c09f4..6bb6c9d140 100644 --- a/tools/docker/python/amd64/alpine.Dockerfile +++ b/tools/docker/python/amd64/alpine.Dockerfile @@ -38,7 +38,8 @@ WORKDIR /project # Build project FROM devel AS build -RUN cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_PYTHON=ON +RUN cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_PYTHON=ON -DVENV_USE_SYSTEM_SITE_PACKAGES=ON \ + -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF RUN cmake --build build -v -j8 # Rename wheel package ortools-version+musl-.... RUN cp build/python/dist/ortools-*.whl .