2016-01-26 03:25:16 -05:00
|
|
|
FROM golang:latest
|
2015-12-24 21:27:13 -05:00
|
|
|
|
2016-02-22 04:57:43 -05:00
|
|
|
RUN go get -u github.com/v2ray/v2ray-core \
|
|
|
|
&& rm -f $GOPATH/bin/build \
|
|
|
|
&& go install github.com/v2ray/v2ray-core/tools/build \
|
|
|
|
&& build \
|
2016-02-22 23:20:34 -05:00
|
|
|
&& mv bin/v2ray-custom-linux-64/v2ray bin \
|
2016-02-22 04:57:43 -05:00
|
|
|
&& rm -rf pkg src
|
2015-12-24 21:27:13 -05:00
|
|
|
|
|
|
|
EXPOSE 27183
|
2016-02-22 04:57:43 -05:00
|
|
|
COPY gen-server-cfg.sh /go/gen-server-cfg.sh
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2016-02-22 23:20:34 -05:00
|
|
|
CMD ["v2ray", "--config=/go/server-cfg.json"]
|