From 23c2e3041f858c27728a2d5af1d382486ed201f1 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Mon, 12 Jun 2023 23:38:16 +0800 Subject: [PATCH] build: xray pre-release XTLS/Xray-core@9112cfd39c2105d5b513275f9659b26e92fa7b67 --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 276d08e..d47908a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,12 @@ 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/ +#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 RUN go get RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-s -w" RUN mv main /xray