File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,16 @@ RUN apt-get update && apt-get upgrade -y \
4646 && apt-get update \
4747 && apt-get install -y $MYSQL_CLIENT \
4848 && apt-get install -y postgresql-client-$POSTGRES_VERSION \
49+ && ARCH=$(uname -m) \
50+ && if [ "$ARCH" = "x86_64" ]; then \
51+ PLATFORM="x86_64" ; \
52+ elif [ "$ARCH" = "aarch64" ]; then \
53+ PLATFORM="aarch64" ; \
54+ else \
55+ echo "Unsupported architecture: $ARCH" ; exit 1; \
56+ fi \
4957 && curl -o /tmp/speedtest-cli.tgz -L \
50- "https://install.speedtest.net/app/cli/ookla-speedtest-$SPEEDTEST_VERSION-linux-x86_64 .tgz" \
58+ "https://install.speedtest.net/app/cli/ookla-speedtest-$SPEEDTEST_VERSION-linux-$PLATFORM .tgz" \
5159 && tar -xzf /tmp/speedtest-cli.tgz -C /usr/bin \
5260 && apt-get -y autoremove \
5361 && apt-get clean \
You can’t perform that action at this time.
0 commit comments