Browse Source

build: xray version `1.8.0`

v1.x.x
Dnomd343 2 years ago
parent
commit
177aa8ded8
  1. 13
      Dockerfile

13
Dockerfile

@ -11,16 +11,9 @@ WORKDIR ./build/release/
RUN strip upx && mv upx /tmp/ RUN strip upx && mv upx /tmp/
FROM ${GOLANG} AS xray FROM ${GOLANG} AS xray
#ENV XRAY="1.7.5" 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 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/ 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
RUN go get RUN go get
RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-s -w" && mv main /tmp/xray RUN env CGO_ENABLED=0 go build -v -trimpath -ldflags "-s -w" && mv main /tmp/xray
COPY --from=upx /tmp/upx /usr/bin/ COPY --from=upx /tmp/upx /usr/bin/

Loading…
Cancel
Save