speedtestlog/Dockerfile
paradizelost ede0e223ec
Some checks failed
/ Plan (push) Has been cancelled
Update Dockerfile
2024-11-27 10:46:44 -06:00

13 lines
436 B
Docker

FROM debian:bullseye-slim
#
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"]