Files
qbitcheck/Dockerfile
2025-11-21 14:04:24 -08:00

26 lines
653 B
Docker

# Qbitcheck Docker Container
# Monitors qBittorrent connection status and manages remediation
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set entrypoint
ENTRYPOINT ["python", "main.py"]
# Health check (simple process check)
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD ps aux | grep python | grep main.py || exit 1