mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-20 04:21:13 -05:00
feat(docker): update Dockerfile for editable mode compatibility and refine package installation
This commit is contained in:
@@ -37,8 +37,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
RUN set -e && \
|
RUN set -e && \
|
||||||
echo "Installing package..." && \
|
echo "Installing package..." && \
|
||||||
pip uninstall -y simpleguardhome || true && \
|
pip uninstall -y simpleguardhome || true && \
|
||||||
# Install package with dependencies and PEP 517 support
|
# Install package in editable mode with compatibility mode enabled
|
||||||
pip install --use-pep517 -e . && \
|
pip install --use-pep517 -e . --config-settings editable_mode=compat && \
|
||||||
echo "Verifying installation..." && \
|
echo "Verifying installation..." && \
|
||||||
pip show simpleguardhome && \
|
pip show simpleguardhome && \
|
||||||
# List all package files
|
# List all package files
|
||||||
|
|||||||
@@ -26,7 +26,4 @@ package-dir = {"" = "src"}
|
|||||||
packages = {find = {where = ["src"]}}
|
packages = {find = {where = ["src"]}}
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
simpleguardhome = ["templates/*", "favicon.ico"]
|
simpleguardhome = ["templates/*", "favicon.ico"]
|
||||||
|
|
||||||
[tool.setuptools.editable]
|
|
||||||
mode = "compat"
|
|
||||||
Reference in New Issue
Block a user