From 63b8c59d9f97e35c9c1176044575da6e1aa207f3 Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome <36760800+alvarobartt@users.noreply.github.com> Date: Fri, 29 Nov 2024 13:14:05 +0000 Subject: [PATCH] Add `poetry-plugin-export` and fix indentation Manually install the plugin to avoid issues with future `poetry` versions as of the warning messages recommend: ``` WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Warning: poetry-plugin-export will not be installed by default in a future version of Poetry. In order to avoid a breaking change and make your automation forward-compatible, please install poetry-plugin-export explicitly. See https://python-poetry.org/docs/plugins/#using-plugins for details on how to install a plugin. To disable this warning run 'poetry config warnings.export false'. ``` --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d8bdae1c..99e19cfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -204,9 +204,11 @@ FROM conda-install AS poetry-requirements COPY server/poetry.lock poetry.lock COPY server/pyproject.toml pyproject.toml -RUN pip install poetry && poetry export -f requirements.txt \ - --extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \ - --output requirements_poetry.txt +RUN pip install poetry && \ + poetry self add poetry-plugin-export && \ + poetry export -f requirements.txt \ + --extras "attention bnb accelerate compressed-tensors marlin moe quantize peft outlines" \ + --output requirements_poetry.txt FROM conda-install AS base