From b5dcc87459ca4c0232282e000c0cf20342e98e05 Mon Sep 17 00:00:00 2001 From: drbh Date: Fri, 8 Mar 2024 23:13:07 +0000 Subject: [PATCH] fix: include shared python library during rust build step --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0b654598..4212788c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,11 @@ RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \ unzip -o $PROTOC_ZIP -d /usr/local 'include/*' && \ rm -f $PROTOC_ZIP +# pyo3 depends on a shared python library +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + python3-dev \ + && rm -rf /var/lib/apt/lists/* + COPY --from=planner /usr/src/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json