diff --git a/Dockerfile b/Dockerfile index fb941df..c80227f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,8 @@ RUN set -ex \ && apk add \ curl \ git \ - && git clone "https://github.com/librespeed/speedtest-go.git" /src \ + && git clone -b "${VERSION}" --depth=1 "https://github.com/librespeed/speedtest-go.git" /src \ && cd /src \ - && git reset --hard "${VERSION}" \ && go build \ -o speedtest \ -mod=readonly \