refactor(docker): remove monitor.py references and adjust Dockerfile paths for clarity

This commit is contained in:
pacnpal
2025-01-29 09:34:34 -05:00
parent 31b66c6d65
commit 6baa26eb80
3 changed files with 2 additions and 11 deletions

View File

@@ -14,7 +14,6 @@
!requirements.txt !requirements.txt
!docker-entrypoint.sh !docker-entrypoint.sh
!healthcheck.py !healthcheck.py
!monitor.py
# VERIFICATION: Required files that MUST exist: # VERIFICATION: Required files that MUST exist:
# - src/simpleguardhome/__init__.py # - src/simpleguardhome/__init__.py
@@ -24,7 +23,6 @@
# - src/simpleguardhome/templates/index.html # - src/simpleguardhome/templates/index.html
# - src/simpleguardhome/favicon.ico # - src/simpleguardhome/favicon.ico
# - healthcheck.py # - healthcheck.py
# - monitor.py
# SAFETY: Never include these files even if allowed above # SAFETY: Never include these files even if allowed above
**/__pycache__/ **/__pycache__/

View File

@@ -14,7 +14,7 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Copy source code # Copy source code
COPY src/simpleguardhome /app/src/simpleguardhome/ COPY src/simpleguardhome /app/simpleguardhome/
# Set up health check # Set up health check
COPY healthcheck.py /usr/local/bin/ COPY healthcheck.py /usr/local/bin/
@@ -24,8 +24,7 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD python3 /usr/local/bin/healthcheck.py CMD python3 /usr/local/bin/healthcheck.py
# Environment setup # Environment setup
ENV PYTHONPATH=/app/src \ ENV ADGUARD_HOST="http://localhost" \
ADGUARD_HOST="http://localhost" \
ADGUARD_PORT=3000 ADGUARD_PORT=3000
# Expose application port # Expose application port

View File

@@ -3,11 +3,5 @@ set -e
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting SimpleGuardHome..." echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting SimpleGuardHome..."
# Verify the package is importable
if ! python3 -c "from simpleguardhome.main import app"; then
echo "Error: Failed to import SimpleGuardHome package"
exit 1
fi
# Start the application # Start the application
exec python3 -m uvicorn simpleguardhome.main:app --host 0.0.0.0 --port 8000 exec python3 -m uvicorn simpleguardhome.main:app --host 0.0.0.0 --port 8000