From 9f837550077af18148457e559616837ce23a22c7 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 19 Aug 2025 16:01:51 +0800 Subject: [PATCH] fix: update Dockerfile to install dependencies from pyproject.toml and adjust .dockerignore --- .dockerignore | 3 ++- installer/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index a6d4542ee..e11ef586c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ .git* .idea* -*.md \ No newline at end of file +*.md +.venv/ \ No newline at end of file diff --git a/installer/Dockerfile b/installer/Dockerfile index a9abd5ca9..9f649d1ba 100644 --- a/installer/Dockerfile +++ b/installer/Dockerfile @@ -23,7 +23,7 @@ RUN rm -rf /opt/maxkb-app/ui && \ python3 -m venv /opt/py3 && \ pip install uv --break-system-packages && \ . /opt/py3/bin/activate && \ - uv sync && \ + uv pip install -r pyproject.toml && \ 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 && \