From 9232686a22831112f6eddf2af4ab0a76dcc14588 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sun, 2 Oct 2022 23:43:45 +0800 Subject: [PATCH] build: cleardns static compile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0141ea3..239fdfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,8 @@ FROM ${ALPINE} AS cleardns RUN apk add build-base cmake COPY ./ /ClearDNS/ WORKDIR /ClearDNS/bin/ -RUN cmake -DCMAKE_BUILD_TYPE=Release .. && make && strip cleardns && mv cleardns /tmp/ +RUN cmake -DCMAKE_EXE_LINKER_FLAGS=-static -DCMAKE_BUILD_TYPE=Release .. && \ + make && strip cleardns && mv cleardns /tmp/ FROM ${ALPINE} AS build RUN apk add xz