Browse Source

build: upx version `4.0.0`

dev
Dnomd343 2 years ago
parent
commit
f941bacdc7
  1. 8
      Dockerfile

8
Dockerfile

@ -3,10 +3,10 @@ ARG RUST="rust:1.64-alpine3.16"
ARG GOLANG="golang:1.18-alpine3.16" ARG GOLANG="golang:1.18-alpine3.16"
FROM ${ALPINE} AS upx FROM ${ALPINE} AS upx
RUN apk add build-base cmake git RUN apk add build-base cmake
RUN git clone https://github.com/dnomd343/upx.git --depth=1 ENV UPX="4.0.0"
WORKDIR ./upx/ RUN wget https://github.com/upx/upx/releases/download/v${UPX}/upx-${UPX}-src.tar.xz && tar xf upx-${UPX}-src.tar.xz
RUN git submodule update --init && rm -rf ./.git/ WORKDIR ./upx-${UPX}-src/
RUN make UPX_CMAKE_CONFIG_FLAGS=-DCMAKE_EXE_LINKER_FLAGS=-static RUN make UPX_CMAKE_CONFIG_FLAGS=-DCMAKE_EXE_LINKER_FLAGS=-static
WORKDIR ./build/release/ WORKDIR ./build/release/
RUN strip upx && mv upx /tmp/ RUN strip upx && mv upx /tmp/

Loading…
Cancel
Save