feat(docker): add diagnostic output for package installation and import verification

This commit is contained in:
pacnpal
2025-01-28 21:17:35 -05:00
parent 1bcd9328d9
commit f961c66ef0
2 changed files with 9 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ COPY . .
RUN pip uninstall -y simpleguardhome || true && \
pip install -e . && \
pip show simpleguardhome && \
pip list && \
python3 -c "import sys; print('Python path:', sys.path)" && \
python3 -c "import simpleguardhome; print('Package found at:', simpleguardhome.__file__)"
# Copy and set up entrypoint script

View File

@@ -12,9 +12,14 @@ handle_term() {
# Set up signal handlers
trap handle_term SIGTERM SIGINT
# Verify package can be imported
# Print diagnostic information
echo "Verifying package installation..."
python3 -c "import simpleguardhome" || exit 1
echo "Python path:"
python3 -c "import sys; print('\n'.join(sys.path))"
echo "Installed packages:"
pip list
echo "Attempting to import simpleguardhome..."
python3 -c "import simpleguardhome; print('Successfully imported simpleguardhome')" || exit 1
# Start the application
echo "Starting SimpleGuardHome server..."