speedtestlog/Dockerfile

13 lines
436 B
Docker
Raw Permalink Normal View History

2024-11-26 13:22:46 -06:00
FROM debian:bullseye-slim
#
2024-11-26 13:30:05 -06:00
RUN apt update && apt install curl -y
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
RUN apt install python3 python3-pip iputils-ping speedtest -y
2024-11-26 13:22:46 -06:00
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"]