diff --git a/installer/Dockerfile b/installer/Dockerfile index f7c506b81..e9f9f0787 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -21,10 +21,11 @@ COPY --chmod=700 . /opt/maxkb-app WORKDIR /opt/maxkb-app RUN rm -rf /opt/maxkb-app/ui && \ python3 -m venv /opt/py3 && \ - pip install uv --break-system-packages && \ + pip install poetry==2.0.0 --break-system-packages && \ + poetry config virtualenvs.create false && \ . /opt/py3/bin/activate && \ if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \ - uv sync && \ + poetry install && \ find /opt/maxkb-app -depth \( -name ".git*" -o -name ".docker*" -o -name ".idea*" -o -name ".editorconfig*" -o -name ".prettierrc*" -o -name "README.md" -o -name "poetry.lock" -o -name "pyproject.toml" \) -exec rm -rf {} + && \ export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \ export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \