Files
testbot-healthcheck/Dockerfile
Klaus 2effe226db Initial commit: TestBot mit Healthcheck
Features:
- Antwortet auf 'hallo' im Privatchat
- HTTP Healthcheck auf Port 8080
- Coolify-ready Dockerfile mit HEALTHCHECK
- Aiogram 3.x basiert

Ready for deployment! 🚀
2026-02-19 09:02:54 +01:00

35 lines
767 B
Docker

# TestBot mit Healthcheck
# Dockerfile für Coolify Deployment
# ==================================
FROM python:3.11-slim
# Labels für Coolify
LABEL coolify.deployment="true"
LABEL coolify.healthcheck.enabled="true"
# System-Abhängigkeiten
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Arbeitsverzeichnis
WORKDIR /app
# Python-Abhängigkeiten installieren
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Bot-Code kopieren
COPY bot.py .
# Port für Healthcheck expose
EXPOSE 8080
# Docker Healthcheck (für Coolify)
HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# Bot starten
CMD ["python", "bot.py"]