heatcheck

This commit is contained in:
sky
2025-09-12 22:37:25 +02:00
parent 991966ebb3
commit 35cb6808eb

View File

@@ -7,21 +7,20 @@ ENV LANG=fr_FR.UTF-8
ENV LC_ALL=fr_FR.UTF-8 ENV LC_ALL=fr_FR.UTF-8
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \ apt-utils \
locales \ locales \
python3 \ python3 \
python3-pip \ python3-pip \
python3-venv \ python3-venv
wget \
&& wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian12_all.deb \ RUN wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.4+debian13_all.deb; \
&& dpkg -i zabbix-release_latest_7.4+debian12_all.deb \ dpkg -i zabbix-release*; \
&& apt-get update \ apt-get update; \
&& apt-get install -y --no-install-recommends zabbix-agent2 \ apt-get install -y --no-install-recommends zabbix-agent2; \
&& sed -i 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen \ sed -i 's/# fr_FR.UTF-8 UTF-8/fr_FR.UTF-8 UTF-8/' /etc/locale.gen; \
&& locale-gen \ locale-gen; \
&& rm -rf /var/lib/apt/lists/* \ rm -rf /var/lib/apt/lists/* *.deb
&& rm zabbix-release_latest_7.4+debian12_all.deb
COPY requirements.txt . COPY requirements.txt .
COPY run-web.py . COPY run-web.py .
COPY ./database ./database COPY ./database ./database
@@ -36,4 +35,6 @@ RUN python3 -m venv /app/venv && \
/app/venv/bin/pip install --no-cache-dir -r requirements.txt && \ /app/venv/bin/pip install --no-cache-dir -r requirements.txt && \
chmod +x /start.sh chmod +x /start.sh
CMD ["/start.sh"] HEALTHCHECK --interval=5m --timeout=1m --start-period=2m CMD /app/venv/bin/python /app/healthcheck.py --show-success --config-dir /app/config/ --hook-dir /app/config/healthcheck/
CMD ["/start.sh"]