Files
network-alpine/Dockerfile
T
2026-07-25 20:00:17 +02:00

18 lines
571 B
Docker

FROM alpine:latest
RUN apk add --no-cache curl wget git openssh bash vim nano socat bind-tools tcpdump python3 jq lldpd lighttpd iperf iperf3 lftp nmap fping pv
# Set environment variables for init script
ENV HTTP_SERVER_DISABLE=false
ENV HTTP_SERVER_PORT=80
RUN mkdir -p /docker-entrypoint-initdb.d
COPY --chown=root:root --chmod=755 src/init.sh /init.sh
# Additional files
RUN echo '$SERVER["socket"] == "[::]:80" { }' >> /etc/lighttpd/lighttpd.conf
COPY --chown=root:root --chmod=644 src/index.html /var/www/localhost/htdocs/index.html
ENTRYPOINT [ "/init.sh" ]