From 177aa8ded820ee2c1eda3740fa0de9b4b0ca0030 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 10 Mar 2023 10:20:18 +0800 Subject: [PATCH] build: xray version `1.8.0` --- Dockerfile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 249ec7d..09bc62a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,16 +11,9 @@ WORKDIR ./build/release/ RUN strip upx && mv upx /tmp/ FROM ${GOLANG} AS xray -#ENV XRAY="1.7.5" -#RUN wget https://github.com/XTLS/Xray-core/archive/refs/tags/v${XRAY}.tar.gz && tar xf v${XRAY}.tar.gz -#WORKDIR ./Xray-core-${XRAY}/main/ - -# TODO: use xray dev version just for now -RUN apk add git -RUN git clone https://github.com/XTLS/Xray-core.git -WORKDIR ./Xray-core/main/ -RUN git checkout 79c0b0a0f2c82a67e353be41c2a85dcb9cbbfe59 - +ENV XRAY="1.8.0" +RUN wget https://github.com/XTLS/Xray-core/archive/refs/tags/v${XRAY}.tar.gz && tar xf v${XRAY}.tar.gz +WORKDIR ./Xray-core-${XRAY}/main/ RUN go get RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-s -w" && mv main /tmp/xray COPY --from=upx /tmp/upx /usr/bin/