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 <>
This commit is contained in:
Seena Fallah 2023-04-09 04:35:00 +02:00 committed by Shelikhoo
parent 5a68536530
commit e738e05da3
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
1 changed files with 2 additions and 1 deletions

View File

@ -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" ]