mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-02 09:17:55 -04:00
dd46442735
修改为直接使用官方构建的 golang
11 lines
292 B
Docker
11 lines
292 B
Docker
FROM golang:latest
|
|
|
|
RUN go get -u github.com/v2ray/v2ray-core
|
|
RUN rm -f $GOPATH/bin/build
|
|
RUN go install github.com/v2ray/v2ray-core/tools/build
|
|
RUN $GOPATH/bin/build
|
|
|
|
EXPOSE 27183
|
|
ADD server-cfg.json /go/server-cfg.json
|
|
CMD /go/bin/v2ray-custom-linux-64/v2ray --config="/go/server-cfg.json"
|