From 0ca5bf0634a355935aebf9f936b5f10ffd722983 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 20 Aug 2020 11:04:03 +0200 Subject: [PATCH] Simplify build Signed-off-by: Knut Ahlers --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 \