1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-04 17:27:23 -05:00
v2fly/tools/docker/Dockerfile
2016-02-23 12:23:22 +08:00

16 lines
409 B
Docker

FROM golang:latest
RUN go get -u github.com/v2ray/v2ray-core \
&& rm -f $GOPATH/bin/build \
&& go install github.com/v2ray/v2ray-core/tools/build \
&& build \
&& mv bin/v2ray-custom-linux-64/v2ray bin \
&& rm -rf pkg src
EXPOSE 27183
COPY gen-server-cfg.sh /go/gen-server-cfg.sh
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["v2ray", "--config=/go/server-cfg.json"]