feat(docker): streamline Dockerfile by optimizing layer caching and enhancing installation verification

This commit is contained in:
pacnpal
2025-01-28 23:24:30 -05:00
parent a73c8a3a20
commit a8fc3d5746
3 changed files with 44 additions and 42 deletions

View File

@@ -1,3 +1,23 @@
# -*- coding: utf-8 -*-
from setuptools import setup
setup()
if __name__ == "__main__":
try:
setup(
package_dir={"": "src"},
packages=["simpleguardhome"],
package_data={
"simpleguardhome": [
"templates/*",
"favicon.ico"
]
},
include_package_data=True
)
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"
)