Migration vers pré-prod : refonte Docker et documentation

- Dockerfile modernisé avec venv Python et locales françaises
  - Configuration docker-compose simplifiée
  - README complètement réécrit pour l'architecture multi-plateformes
  - Suppression bot.py et statuts.txt (remplacés par modules webapp/discordbot)
  - Migration vers interface d'administration web
This commit is contained in:
skylanix
2025-08-12 01:33:04 +02:00
parent a96e3ebc63
commit 86e8e46959
7 changed files with 159 additions and 280 deletions

View File

@@ -3,9 +3,12 @@ FROM debian:trixie-slim
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
ENV LANG=fr_FR.UTF-8
ENV LC_ALL=fr_FR.UTF-8
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
locales \
python3 \
python3-pip \
python3-venv \
@@ -14,16 +17,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& dpkg -i zabbix-release_latest_7.4+debian12_all.deb \
&& apt-get update \
&& 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 \
&& locale-gen \
&& rm -rf /var/lib/apt/lists/* \
&& rm zabbix-release_latest_7.4+debian12_all.deb
COPY requirements.txt .
COPY bot.py .
COPY statuts.txt .
COPY run-web.py .
COPY ./webapp ./webapp
COPY ./discordbot ./discordbot
COPY ./database ./database
COPY zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf
COPY start.sh /start.sh
RUN pip3 install --no-cache-dir --break-system-packages --root-user-action=ignore -r requirements.txt && \
RUN python3 -m venv /app/venv && \
/app/venv/bin/pip install --no-cache-dir -r requirements.txt && \
chmod +x /start.sh
CMD ["/start.sh"]