From ccff82dba0561eac1285d0d0cde53f99537fb9b2 Mon Sep 17 00:00:00 2001 From: Username404 Date: Thu, 6 Oct 2022 15:52:28 +0200 Subject: [PATCH] Dockerfile: Make sure the upx repository is up-to-date Signed-off-by: Username404 --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ccced1..4a2bbf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,9 @@ RUN apk add --no-cache gcc g++ musl-dev libc-dev cmake git samurai coreutils rpm RUN mkdir -p /usr/src/yerbacon WORKDIR /usr/src/ -RUN git clone --quiet -n --branch devel4 https://github.com/upx/upx/ +ARG BRANCH="devel4" +ADD https://api.github.com/repos/upx/upx/git/refs/heads/$BRANCH version.json +RUN git clone --quiet -n --branch $BRANCH https://github.com/upx/upx/ ARG CMAKE_BUILD_TYPE="Release" WORKDIR ./upx RUN git checkout --quiet 70f14101ed79642e39340fde8514aa19a99f32dc