Skip to content

Commit 8972b21

Browse files
committed
added speedtest cli
1 parent ff11739 commit 8972b21

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,25 @@ FROM serversideup/php:8.3-fpm-nginx-alpine-v3.5.1 AS base
66
LABEL org.opencontainers.image.title="speedtest-tracker-docker" \
77
org.opencontainers.image.authors="Alex Justesen (@alexjustesen)"
88

9-
ARG RELEASE_TAG="latest"
9+
ARG CLI_VERSION="1.2.0" \
10+
RELEASE_TAG="latest"
1011

1112
ENV AUTORUN_ENABLED="TRUE" \
1213
AUTORUN_LARAVEL_MIGRATION_ISOLATION="true" \
14+
# PHP_OPCACHE_ENABLE="1" \
1315
SHOW_WELCOME_MESSAGE="false"
1416

1517
# Switch to root so we can do root things
1618
USER root
1719

20+
# Install Speedtest CLI
21+
RUN curl -o \
22+
/tmp/speedtest-cli.tgz -L \
23+
"https://install.speedtest.net/app/cli/ookla-speedtest-${CLI_VERSION}-linux-x86_64.tgz" && \
24+
tar xzf \
25+
/tmp/speedtest-cli.tgz -C \
26+
/usr/bin
27+
1828
# Install the intl extension with root permissions
1929
RUN install-php-extensions intl
2030

0 commit comments

Comments
 (0)