From e738e05da3313e8f840a214637a243cc24b1e118 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Sun, 9 Apr 2023 04:35:00 +0200 Subject: [PATCH] build: set v2ray binary as an entrypoint Use command to add args. Also, add a default command to make it backward compatible with v4. Signed-off-by: Seena Fallah --- release/container/Containerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release/container/Containerfile b/release/container/Containerfile index 4d76a4dcf..b5f1d3645 100644 --- a/release/container/Containerfile +++ b/release/container/Containerfile @@ -16,4 +16,5 @@ ENV v2ray.location.asset=/opt/v2ray/share COPY ./ /opt/v2ray/ -CMD ["/opt/v2ray/bin/v2ray"] +ENTRYPOINT [ "/opt/v2ray/bin/v2ray" ] +CMD [ "run", "-config", "/etc/v2ray/config.json" ]