feat(docker): enhance Dockerfile and entrypoint script with improved debugging outputs; update .dockerignore for better file management

This commit is contained in:
pacnpal
2025-01-28 23:30:06 -05:00
parent a8fc3d5746
commit 0b59d7ac1f
4 changed files with 107 additions and 64 deletions

View File

@@ -1,23 +1,28 @@
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import setup, find_namespace_packages
if __name__ == "__main__":
try:
setup(
package_dir={"": "src"},
packages=["simpleguardhome"],
packages=find_namespace_packages(where="src", include=["simpleguardhome*"]),
package_data={
"simpleguardhome": [
"templates/*",
"favicon.ico"
]
},
include_package_data=True
include_package_data=True,
install_requires=[
"fastapi",
"uvicorn",
"python-dotenv",
"httpx",
"pydantic",
"jinja2",
]
)
except: # noqa
print(
"\n\nAn error occurred while building the project, "
"please ensure you have the most updated version of setuptools, "
"setuptools_scm and wheel with:\n"
" pip install -U setuptools setuptools_scm wheel\n\n"
)
except Exception as e:
print(f"\n\nAn error occurred while building the project: {e}\n"
"Please ensure you have the most updated version of setuptools, "
"setuptools_scm and wheel with:\n"
" pip install -U setuptools setuptools_scm wheel\n\n")