mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-17 14:56:12 +00:00
[docker] generate server config on first run
This commit is contained in:
1 parent
f55d22e8cf
commit
c07cc6c6af
5 files changed
+25
-12
No files matched your search
+10
-6
@@ -1,10 +1,14 @@
|
||||
FROM golang:latest
|
||||
|
||||
RUN go get -u github.com/v2ray/v2ray-core
|
||||
RUN rm -f $GOPATH/bin/build
|
||||
RUN go install github.com/v2ray/v2ray-core/tools/build
|
||||
RUN $GOPATH/bin/build
|
||||
RUN go get -u github.com/v2ray/v2ray-core \
|
||||
&& rm -f $GOPATH/bin/build \
|
||||
&& go install github.com/v2ray/v2ray-core/tools/build \
|
||||
&& build \
|
||||
&& rm -rf pkg src
|
||||
|
||||
EXPOSE 27183
|
||||
ADD server-cfg.json /go/server-cfg.json
|
||||
CMD /go/bin/v2ray-custom-linux-64/v2ray --config="/go/server-cfg.json"
|
||||
COPY gen-server-cfg.sh /go/gen-server-cfg.sh
|
||||
COPY docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["/go/bin/v2ray-custom-linux-64/v2ray", "--config=/go/server-cfg.json"]
|
||||
Reference in new issue
Block a user