Browse Source

build: static option in make command

dev
Dnomd343 2 years ago
parent
commit
eb03babe7b
  1. 4
      Dockerfile

4
Dockerfile

@ -6,8 +6,8 @@ RUN apk add build-base cmake git
RUN git clone https://github.com/dnomd343/upx.git RUN git clone https://github.com/dnomd343/upx.git
WORKDIR ./upx/ WORKDIR ./upx/
RUN git submodule update --init && rm -rf ./.git/ && \ RUN git submodule update --init && rm -rf ./.git/ && \
sed -i '2i\set(CMAKE_EXE_LINKER_FLAGS "-static")' CMakeLists.txt && \ make UPX_CMAKE_CONFIG_FLAGS=-DCMAKE_EXE_LINKER_FLAGS=-static && \
make && mv ./build/release/upx /tmp/ && strip /tmp/upx mv ./build/release/upx /tmp/ && strip /tmp/upx
FROM ${GOLANG} AS adguard FROM ${GOLANG} AS adguard
ENV ADGUARD="v0.107.14" ENV ADGUARD="v0.107.14"

Loading…
Cancel
Save