|
@ -2,12 +2,12 @@ ARG ALPINE="alpine:3.16" |
|
|
ARG GOLANG="golang:1.18-alpine3.16" |
|
|
ARG GOLANG="golang:1.18-alpine3.16" |
|
|
|
|
|
|
|
|
FROM ${ALPINE} AS upx |
|
|
FROM ${ALPINE} AS upx |
|
|
ENV UPX="3.96" |
|
|
RUN apk add build-base cmake git |
|
|
RUN sed -i 's/v3.\d\d/v3.15/' /etc/apk/repositories && apk add bash build-base perl ucl-dev zlib-dev |
|
|
RUN git clone https://github.com/dnomd343/upx.git ./upx-build/ |
|
|
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-build/ |
|
|
WORKDIR ./upx-${UPX}-src/ |
|
|
RUN git submodule update --init && rm -rf ./.git/ |
|
|
RUN make -C ./src/ && mkdir -p /upx/bin/ && mv ./src/upx.out /upx/bin/upx && \ |
|
|
RUN mkdir -p /upx/bin/ && make && mv ./build/release/upx /upx/bin/ && \ |
|
|
mkdir -p /upx/lib/ && cd /usr/lib/ && cp -d libgcc_s.so* libstdc++.so* libucl.so* /upx/lib/ |
|
|
mkdir -p /upx/lib/ && cp -d /usr/lib/libgcc_s.so* /usr/lib/libstdc++.so* /upx/lib/ |
|
|
|
|
|
|
|
|
FROM ${GOLANG} AS adguard |
|
|
FROM ${GOLANG} AS adguard |
|
|
ENV ADGUARD="v0.107.14" |
|
|
ENV ADGUARD="v0.107.14" |
|
|