Browse Source

build: xray pre-release XTLS/Xray-core@9112cfd39c2105d5b513275f9659b26e92fa7b67

v1.x.x
Dnomd343 1 year ago
parent
commit
23c2e3041f
  1. 9
      Dockerfile

9
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

Loading…
Cancel
Save