feat(docker): update Dockerfile for editable mode compatibility and refine package installation

This commit is contained in:
pacnpal
2025-01-28 21:58:03 -05:00
parent 57539fa56e
commit 0c7d5a2a9b
2 changed files with 3 additions and 6 deletions

View File

@@ -37,8 +37,8 @@ RUN pip install --no-cache-dir -r requirements.txt
RUN set -e && \
echo "Installing package..." && \
pip uninstall -y simpleguardhome || true && \
# Install package with dependencies and PEP 517 support
pip install --use-pep517 -e . && \
# Install package in editable mode with compatibility mode enabled
pip install --use-pep517 -e . --config-settings editable_mode=compat && \
echo "Verifying installation..." && \
pip show simpleguardhome && \
# List all package files

View File

@@ -27,6 +27,3 @@ packages = {find = {where = ["src"]}}
[tool.setuptools.package-data]
simpleguardhome = ["templates/*", "favicon.ico"]
[tool.setuptools.editable]
mode = "compat"