fix: update Dockerfile to install dependencies from pyproject.toml and adjust .dockerignore

This commit is contained in:
CaptainB
2025-08-19 16:01:51 +08:00
parent 103bd6697b
commit 9f83755007
2 changed files with 3 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
.git*
.idea*
*.md
*.md
.venv/

View File

@@ -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 && \