From 90d7fc6bc53b4d6aafef2674ccd0d2c63ded36f2 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 17 Sep 2024 11:04:51 -0600 Subject: [PATCH] Install no deps separately for wheel (#13799) * Install no deps separately for wheel * Fix order * fix arg --- docker/main/Dockerfile | 3 +++ docker/main/requirements-wheels-nodeps.txt | 1 + docker/main/requirements-wheels.txt | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 docker/main/requirements-wheels-nodeps.txt diff --git a/docker/main/Dockerfile b/docker/main/Dockerfile index 92e28a381..4d238f29b 100644 --- a/docker/main/Dockerfile +++ b/docker/main/Dockerfile @@ -170,6 +170,9 @@ RUN /build_pysqlite3.sh COPY docker/main/requirements-wheels.txt /requirements-wheels.txt RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt +COPY docker/main/requirements-wheels-nodeps.txt /requirements-wheels-nodeps.txt +RUN pip3 wheel --no-deps --wheel-dir=/wheels -r /requirements-wheels-nodeps.txt + # Collect deps in a single layer FROM scratch AS deps-rootfs diff --git a/docker/main/requirements-wheels-nodeps.txt b/docker/main/requirements-wheels-nodeps.txt new file mode 100644 index 000000000..84eac63c2 --- /dev/null +++ b/docker/main/requirements-wheels-nodeps.txt @@ -0,0 +1 @@ +onnx_clip == 4.0.* diff --git a/docker/main/requirements-wheels.txt b/docker/main/requirements-wheels.txt index a81f6ec93..83265f0b7 100644 --- a/docker/main/requirements-wheels.txt +++ b/docker/main/requirements-wheels.txt @@ -33,7 +33,6 @@ openvino == 2024.1.* onnxruntime-openvino == 1.18.* ; platform_machine == 'x86_64' onnxruntime == 1.18.* ; platform_machine == 'aarch64' # Embeddings -onnx_clip == 4.0.* chromadb == 0.5.0 # Generative AI google-generativeai == 0.6.*