fix: include shared python library during rust build step

This commit is contained in:
drbh 2024-03-08 23:13:07 +00:00
parent 65b5b4c36e
commit b5dcc87459
1 changed files with 5 additions and 0 deletions

View File

@ -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