AP manageur V1.0

This commit is contained in:
yoann committed 2026-10-05 02:54:13 +02:00
1 parent 2d3f8d8b3c
commit bc2232c9fe
4 files changed
+6 -4

No files matched your search

+3 -2
View File
@@ -5,8 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive \
# Apache2 + NetworkManager embarqué + outils Wi-Fi + Python
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 python3 \
&& apt full-upgrade -y && apt-get install -y --no-install-recommends \
apache2 nano python3 \
network-manager wpasupplicant dbus \
iw iproute2 rfkill wireless-regdb \
dnsmasq-base iptables nftables procps \
@@ -20,6 +20,7 @@ COPY ap.py /app/ap.py
ARG HTML_FILE=index.html
COPY ${HTML_FILE} /app/index.html
COPY ${HTML_FILE} /var/www/html/index.html
COPY favicon.png /var/www/html/favicon.png
# L'API n'est plus joignable que via Apache : le HTML appelle /api sur le même port (1001)
RUN sed -i 's#const API_URL=[^;]*;#const API_URL="";#' /app/index.html /var/www/html/index.html
COPY apache-ap.conf /etc/apache2/sites-available/000-default.conf