APmanageur Wi-Fi : conteneur Debian + Apache
This commit is contained in:
commit
dbebafd34a
8 files changed
+906
No files matched your search
+35
@@ -0,0 +1,35 @@
|
||||
FROM debian:13-slim
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
# Apache2 + NetworkManager embarqué (pour la carte Netgear) + outils Wi-Fi + Python
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
apache2 python3 \
|
||||
network-manager wpasupplicant dbus \
|
||||
iw iproute2 rfkill wireless-regdb \
|
||||
dnsmasq-base iptables nftables procps \
|
||||
&& a2enmod proxy proxy_http headers \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Vos fichiers
|
||||
WORKDIR /app
|
||||
COPY ap.py /app/ap.py
|
||||
# Nom de votre fichier HTML dans le dossier de build (par défaut index.html)
|
||||
ARG HTML_FILE=index.html
|
||||
COPY ${HTML_FILE} /app/index.html
|
||||
COPY ${HTML_FILE} /var/www/html/index.html
|
||||
COPY apache-ap.conf /etc/apache2/sites-available/000-default.conf
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh && rm -f /var/www/html/index.html.orig \
|
||||
&& sed -i 's/^Listen 80$/Listen 1001/; s/^\s*Listen 443$/ Listen 1443/' /etc/apache2/ports.conf
|
||||
|
||||
ENV AP_DB_FILE=/data/ap-dashboard.sqlite3 \
|
||||
AP_CONNECTION_FILE=/data/connection \
|
||||
AP_UPTIME_FILE=/data/uptime
|
||||
|
||||
VOLUME ["/data", "/etc/NetworkManager/system-connections", "/var/lib/NetworkManager"]
|
||||
EXPOSE 1001 8080
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in new issue
Block a user