8 lines
486 B
Docker
8 lines
486 B
Docker
FROM debian:trixie-slim
|
|
#
|
|
COPY ookla_speedtest_cli.list requirements.txt init.sh /
|
|
RUN apt update && apt install curl python3 python3-pip iputils-ping -y && pip3 install -r /requirements.txt --break-system-packages && chmod +x /init.sh && curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
|
|
RUN apt update && apt install speedtest -y && apt clean
|
|
COPY logspeedtest.py /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/logspeedtest.py
|
|
CMD ["/init.sh"] |