mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 06:40:35 +01:00
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:
11
Dockerfile
11
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user