This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,14 +1,8 @@
|
|||||||
FROM debian:bullseye-slim
|
FROM debian:trixie-slim
|
||||||
#
|
#
|
||||||
COPY ookla_speedtest_cli.list /
|
COPY ookla_speedtest_cli.list requirements.txt init.sh /
|
||||||
RUN apt update && apt install curl -y
|
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 curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
|
RUN apt update && apt install speedtest -y && apt clean
|
||||||
RUN apt install python3 python3-pip iputils-ping speedtest -y
|
|
||||||
COPY logspeedtest.py /usr/local/bin/
|
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 chmod +x /usr/local/bin/logspeedtest.py
|
||||||
RUN pip3 install -r /requirements.txt
|
|
||||||
RUN apt clean
|
|
||||||
CMD ["/init.sh"]
|
CMD ["/init.sh"]
|
Reference in New Issue
Block a user