refactor: update poetry version to 2.0.0 in Dockerfile

This commit is contained in:
CaptainB 2025-07-04 11:33:29 +08:00
parent 45444bb256
commit 77d90e5b46

View File

@ -24,7 +24,7 @@ COPY --from=web-build ui /opt/maxkb-app/ui
WORKDIR /opt/maxkb-app
RUN python3 -m venv /opt/py3 && \
pip install poetry==1.8.5 --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 && \