13 lines
405 B
Docker
13 lines
405 B
Docker
FROM debian:bullseye-slim
|
|
#
|
|
COPY ookla_speedtest_cli.list /
|
|
RUN cat /ookla_speedtest_cli.list >> /etc/apt/sources.list
|
|
RUN apt update && apt install python3 python3-pip iputils-ping speedtest -y
|
|
COPY logspeedtest.py /usr/local/bin/
|
|
COPY requirements.txt /
|
|
COPY init.sh /
|
|
RUN chmod +x /init.sh
|
|
RUN chmod +x /usr/local/bin/logspeedtest.py
|
|
RUN pip3 install -r /requirements.txt
|
|
RUN apt clean
|
|
CMD ["/init.sh"] |