v2ray-core/tools/docker/Dockerfile

16 lines
387 B
Docker
Raw Normal View History

FROM golang:latest
2015-12-25 02:27:13 +00:00
2016-08-20 18:55:45 +00:00
RUN go get -u v2ray.com/core/... \
&& rm -f $GOPATH/bin/build \
2016-08-20 18:55:45 +00:00
&& go install v2ray.com/core/tools/build \
&& build \
2016-02-23 04:20:34 +00:00
&& mv bin/v2ray-custom-linux-64/v2ray bin \
&& rm -rf pkg src
2015-12-25 02:27:13 +00:00
EXPOSE 27183
COPY gen-server-cfg.sh /go/gen-server-cfg.sh
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2016-02-23 04:20:34 +00:00
CMD ["v2ray", "--config=/go/server-cfg.json"]