mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-19 20:11:14 -05:00
refactor(docker): remove monitor.py references and adjust Dockerfile paths for clarity
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
!requirements.txt
|
||||
!docker-entrypoint.sh
|
||||
!healthcheck.py
|
||||
!monitor.py
|
||||
|
||||
# VERIFICATION: Required files that MUST exist:
|
||||
# - src/simpleguardhome/__init__.py
|
||||
@@ -24,7 +23,6 @@
|
||||
# - src/simpleguardhome/templates/index.html
|
||||
# - src/simpleguardhome/favicon.ico
|
||||
# - healthcheck.py
|
||||
# - monitor.py
|
||||
|
||||
# SAFETY: Never include these files even if allowed above
|
||||
**/__pycache__/
|
||||
|
||||
@@ -14,7 +14,7 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy source code
|
||||
COPY src/simpleguardhome /app/src/simpleguardhome/
|
||||
COPY src/simpleguardhome /app/simpleguardhome/
|
||||
|
||||
# Set up health check
|
||||
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
|
||||
|
||||
# Environment setup
|
||||
ENV PYTHONPATH=/app/src \
|
||||
ADGUARD_HOST="http://localhost" \
|
||||
ENV ADGUARD_HOST="http://localhost" \
|
||||
ADGUARD_PORT=3000
|
||||
|
||||
# Expose application port
|
||||
|
||||
@@ -3,11 +3,5 @@ set -e
|
||||
|
||||
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
|
||||
exec python3 -m uvicorn simpleguardhome.main:app --host 0.0.0.0 --port 8000
|
||||
Reference in New Issue
Block a user