From 94be43a48574e470dddef7eccc46df4584b3c02c Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 28 Oct 2022 17:19:39 +0800 Subject: [PATCH] build: upx pre-release version `3.99` --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 481936f..94feeaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,10 @@ ARG ALPINE="alpine:3.16" ARG GOLANG="golang:1.19-alpine3.16" FROM ${ALPINE} AS upx -RUN apk add build-base cmake git -RUN git clone https://github.com/dnomd343/upx.git --depth=1 -WORKDIR ./upx/ -RUN git submodule update --init && rm -rf ./.git/ +RUN apk add build-base cmake +ENV UPX="3.99" +RUN wget https://github.com/upx/upx/releases/download/v${UPX}/upx-${UPX}-src.tar.xz && tar xf upx-${UPX}-src.tar.xz +WORKDIR ./upx-${UPX}-src/ RUN make UPX_CMAKE_CONFIG_FLAGS=-DCMAKE_EXE_LINKER_FLAGS=-static WORKDIR ./build/release/ RUN strip upx && mv upx /tmp/