Skip to content

Commit 1837512

Browse files
build: try uv.
1 parent 1d7a5af commit 1837512

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

installer/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ COPY --chmod=700 . /opt/maxkb-app
2121
WORKDIR /opt/maxkb-app
2222
RUN rm -rf /opt/maxkb-app/ui && \
2323
python3 -m venv /opt/py3 && \
24-
pip install poetry==2.0.0 --break-system-packages && \
25-
poetry config virtualenvs.create false && \
24+
pip install uv --break-system-packages && \
2625
. /opt/py3/bin/activate && \
2726
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
28-
poetry install && \
27+
uv sync --no-interaction && \
2928
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 {} + && \
3029
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages && \
3130
export PIP_TARGET=/opt/maxkb-app/sandbox/python-packages && \

0 commit comments

Comments
 (0)