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