Skip to content

Commit 9142236

Browse files
authored
Update Speedtest CLI installation method in Dockerfile (#2247)
Co-authored-by: Alex Justesen <[email protected]>
1 parent c0bf085 commit 9142236

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/8.3/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ARG WWWGROUP
66
ARG NODE_VERSION=22
77
ARG MYSQL_CLIENT="mysql-client"
88
ARG POSTGRES_VERSION=17
9+
ARG SPEEDTEST_VERSION=1.2.0
910

1011
WORKDIR /var/www/html
1112

@@ -45,8 +46,9 @@ RUN apt-get update && apt-get upgrade -y \
4546
&& apt-get update \
4647
&& apt-get install -y $MYSQL_CLIENT \
4748
&& apt-get install -y postgresql-client-$POSTGRES_VERSION \
48-
&& curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
49-
&& apt-get install -y speedtest-cli \
49+
&& curl -o /tmp/speedtest-cli.tgz -L \
50+
"https://install.speedtest.net/app/cli/ookla-speedtest-$SPEEDTEST_VERSION-linux-x86_64.tgz" \
51+
&& tar -xzf /tmp/speedtest-cli.tgz -C /usr/bin \
5052
&& apt-get -y autoremove \
5153
&& apt-get clean \
5254
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 commit comments

Comments
 (0)