From 7c0fe0d512ffc0c991df4e7230434e619aa5a173 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Wed, 6 Sep 2023 20:33:40 -0700 Subject: [PATCH] proxy: update traceroute version in Docker image --- proxy/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/proxy/Dockerfile b/proxy/Dockerfile index 4dcb39c..5c91f4d 100644 --- a/proxy/Dockerfile +++ b/proxy/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:buster AS step_0 +FROM golang AS step_0 ENV CGO_ENABLED=0 GO111MODULE=on WORKDIR /root @@ -11,17 +11,18 @@ FROM alpine:edge AS step_1 WORKDIR /root RUN apk add --no-cache build-base linux-headers -RUN wget https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-2.1.0/traceroute-2.1.0.tar.gz/download \ - -O traceroute-2.1.0.tar.gz -RUN tar xvf traceroute-2.1.0.tar.gz \ - && cd traceroute-2.1.0 \ + +RUN wget https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-2.1.3/traceroute-2.1.3.tar.gz/download \ + -O traceroute-2.1.3.tar.gz +RUN tar xvf traceroute-2.1.3.tar.gz \ + && cd traceroute-2.1.3 \ && make -j4 LDFLAGS="-static" \ - && strip /root/traceroute-2.1.0/traceroute/traceroute + && strip /root/traceroute-2.1.3/traceroute/traceroute ################################################################################ FROM scratch AS step_2 ENV PATH=/ COPY --from=step_0 /proxy / -COPY --from=step_1 /root/traceroute-2.1.0/traceroute/traceroute / +COPY --from=step_1 /root/traceroute-2.1.3/traceroute/traceroute / ENTRYPOINT ["/proxy"]