Browse Source

fix: v2ray build error

master
dnomd343 2 years ago
parent
commit
4fff5bd741
  1. 2
      Dockerfile

2
Dockerfile

@ -280,7 +280,7 @@ WORKDIR ./Xray-core-${XRAY_VERSION}/
RUN go mod download -x RUN go mod download -x
RUN env CGO_ENABLED=0 go build -v -o xray -trimpath -ldflags "-s -w" ./main && \ RUN env CGO_ENABLED=0 go build -v -o xray -trimpath -ldflags "-s -w" ./main && \
mv ./xray /tmp/ mv ./xray /tmp/
WORKDIR ./v2ray-core-${V2FLY_VERSION}/ WORKDIR ../v2ray-core-${V2FLY_VERSION}/
RUN go mod download -x RUN go mod download -x
RUN env CGO_ENABLED=0 go build -v -o v2ray -trimpath -ldflags "-s -w" ./main && \ RUN env CGO_ENABLED=0 go build -v -o v2ray -trimpath -ldflags "-s -w" ./main && \
mv ./v2ray /tmp/ mv ./v2ray /tmp/

Loading…
Cancel
Save