From 1dda73669fd5b0bfe5be7e5388329806d6ebf273 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 4 Nov 2022 15:47:51 +0800 Subject: [PATCH] build: upx latest version --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07c4a46..410c90a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,14 @@ ARG GOLANG="golang:1.18-alpine3.16" FROM ${ALPINE} AS upx RUN apk add build-base cmake -ENV UPX="4.0.0" -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/ +#ENV UPX="4.0.0" +#RUN wget https://github.com/upx/upx/releases/download/v${UPX}/upx-${UPX}-src.tar.xz && tar xf upx-${UPX}-src.tar.xz +RUN apk add git +RUN git clone https://github.com/upx/upx.git +WORKDIR ./upx/ +RUN git submodule update --init +RUN rm -rf ./.git/ +#WORKDIR ./upx-${UPX}-src/ RUN make UPX_CMAKE_CONFIG_FLAGS=-DCMAKE_EXE_LINKER_FLAGS=-static WORKDIR ./build/release/ RUN strip upx && mv upx /tmp/