From 2cc3b91092e77fd4f9669b1ea54b12bb5d781835 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 7 Mar 2023 23:00:19 +0800 Subject: [PATCH] build: dnsproxy version `0.48.0` --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b3aa3d..913d3d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,14 +26,16 @@ FROM ${GOLANG} AS overture ENV OVERTURE="1.8" RUN wget https://github.com/shawn1m/overture/archive/refs/tags/v${OVERTURE}.tar.gz && tar xf v${OVERTURE}.tar.gz WORKDIR ./overture-${OVERTURE}/main/ +RUN go get RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-X main.version=v${OVERTURE} -s -w" && mv main /tmp/overture COPY --from=upx /tmp/upx /usr/bin/ RUN upx -9 /tmp/overture FROM ${GOLANG} AS dnsproxy -ENV DNSPROXY="0.46.4" +ENV DNSPROXY="0.48.0" RUN wget https://github.com/AdguardTeam/dnsproxy/archive/refs/tags/v${DNSPROXY}.tar.gz && tar xf v${DNSPROXY}.tar.gz WORKDIR ./dnsproxy-${DNSPROXY}/ +RUN go get RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-X main.VersionString=${DNSPROXY} -s -w" && mv dnsproxy /tmp/ COPY --from=upx /tmp/upx /usr/bin/ RUN upx -9 /tmp/dnsproxy