From 02d37010b87757e202015a594560346145e33838 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Mon, 19 Jun 2023 19:09:46 +0800 Subject: [PATCH] build: xray version `1.8.3` --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index d47908a..9d2f280 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,9 @@ ARG ALPINE="alpine:3.18" ARG GOLANG="golang:1.20-alpine3.18" FROM ${GOLANG} AS xray -#ENV XRAY="1.8.1" -#RUN wget https://github.com/XTLS/Xray-core/archive/v${XRAY}.tar.gz -O- | tar xz -#WORKDIR ./Xray-core-${XRAY}/main/ -RUN apk add git && git clone https://github.com/XTLS/Xray-core.git -WORKDIR ./Xray-core/main/ -RUN git checkout 9112cfd39c2105d5b513275f9659b26e92fa7b67 +ENV XRAY="1.8.3" +RUN wget https://github.com/XTLS/Xray-core/archive/v${XRAY}.tar.gz -O- | tar xz +WORKDIR ./Xray-core-${XRAY}/main/ RUN go get RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-s -w" RUN mv main /xray