Ajoute surveillance Zabbix optionnelle et migration Alpine

- Migre vers Alpine Linux avec surveillance Zabbix optionnelle
- Configure variables d'environnement pour activation conditionnelle
- Met à jour documentation avec instructions Docker complètes
This commit is contained in:
skylanix
2025-08-08 21:08:16 +02:00
parent 5a64704629
commit 3c693a7848
6 changed files with 157 additions and 28 deletions

View File

@@ -1,11 +1,16 @@
FROM python:3.9-slim
FROM alpine:3.22.1
WORKDIR /app
RUN apk add --no-cache python3 py3-pip zabbix-agent2
COPY requirements.txt .
COPY bot.py .
COPY statuts.txt .
COPY zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf
COPY start.sh /start.sh
RUN pip install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir --break-system-packages --root-user-action=ignore -r requirements.txt && \
chmod +x /start.sh
CMD ["python", "bot.py"]
CMD ["/start.sh"]