Dockerfile 292 B

12345678910
  1. FROM golang:latest
  2. RUN go get -u github.com/v2ray/v2ray-core
  3. RUN rm -f $GOPATH/bin/build
  4. RUN go install github.com/v2ray/v2ray-core/tools/build
  5. RUN $GOPATH/bin/build
  6. EXPOSE 27183
  7. ADD server-cfg.json /go/server-cfg.json
  8. CMD /go/bin/v2ray-custom-linux-64/v2ray --config="/go/server-cfg.json"