speedtestlog/Dockerfile
Dan Hamik 6616bf7fae
All checks were successful
/ Plan (push) Successful in 3m1s
/ Plan (pull_request) Successful in 17s
/ Deploy (pull_request) Successful in 6s
forgot the -y
2024-11-26 13:30:05 -06:00

14 lines
468 B
Docker

FROM debian:bullseye-slim
#
COPY ookla_speedtest_cli.list /
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
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"]