mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
Merge branch 'master' of https://github.com/v2ray/v2ray-core
This commit is contained in:
commit
6d9d55bcba
2
core.go
2
core.go
@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "1.5"
|
version = "1.6"
|
||||||
build = "Custom"
|
build = "Custom"
|
||||||
codename = "New Order"
|
codename = "New Order"
|
||||||
intro = "An unified platform for anti-censorship."
|
intro = "An unified platform for anti-censorship."
|
||||||
|
@ -1,17 +1,4 @@
|
|||||||
FROM phusion/baseimage
|
FROM golang:latest
|
||||||
|
|
||||||
ENV GOPATH /v2ray
|
|
||||||
ENV PATH $PATH:/usr/local/go/bin
|
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y git
|
|
||||||
RUN apt-get clean
|
|
||||||
|
|
||||||
RUN mkdir -p /v2ray/logs
|
|
||||||
RUN curl -o /go.tar.gz https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
|
|
||||||
RUN tar -C /usr/local -xzf /go.tar.gz
|
|
||||||
RUN rm /go.tar.gz
|
|
||||||
|
|
||||||
|
|
||||||
RUN go get -u github.com/v2ray/v2ray-core
|
RUN go get -u github.com/v2ray/v2ray-core
|
||||||
RUN rm -f $GOPATH/bin/build
|
RUN rm -f $GOPATH/bin/build
|
||||||
@ -19,5 +6,5 @@ RUN go install github.com/v2ray/v2ray-core/tools/build
|
|||||||
RUN $GOPATH/bin/build
|
RUN $GOPATH/bin/build
|
||||||
|
|
||||||
EXPOSE 27183
|
EXPOSE 27183
|
||||||
ADD server-cfg.json /v2ray/server-cfg.json
|
ADD server-cfg.json /go/server-cfg.json
|
||||||
CMD /v2ray/bin/v2ray-custom-linux-64/v2ray --config="/v2ray/server-cfg.json"
|
CMD /go/bin/v2ray-custom-linux-64/v2ray --config="/go/server-cfg.json"
|
||||||
|
@ -12,7 +12,7 @@ cat <<EOF > server-cfg.json
|
|||||||
{
|
{
|
||||||
"port": $PORT,
|
"port": $PORT,
|
||||||
"log" : {
|
"log" : {
|
||||||
"access": "/v2ray/logs/access.log"
|
"access": "/go/access.log"
|
||||||
},
|
},
|
||||||
"inbound": {
|
"inbound": {
|
||||||
"protocol": "vmess",
|
"protocol": "vmess",
|
||||||
|
Loading…
Reference in New Issue
Block a user