1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-30 19:15:23 +00:00

Update Dockerfile

修改为直接使用官方构建的 golang
This commit is contained in:
kxjhlele 2016-01-26 16:25:16 +08:00
parent e2370de572
commit dd46442735

View File

@ -1,17 +1,4 @@
FROM phusion/baseimage
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
FROM golang:latest
RUN go get -u github.com/v2ray/v2ray-core
RUN rm -f $GOPATH/bin/build
@ -19,5 +6,5 @@ RUN go install github.com/v2ray/v2ray-core/tools/build
RUN $GOPATH/bin/build
EXPOSE 27183
ADD server-cfg.json /v2ray/server-cfg.json
CMD /v2ray/bin/v2ray-custom-linux-64/v2ray --config="/v2ray/server-cfg.json"
ADD server-cfg.json /go/server-cfg.json
CMD /go/bin/v2ray-custom-linux-64/v2ray --config="/go/server-cfg.json"