Skip to content

Commit

Permalink
build: set v2ray binary as an entrypoint
Browse files Browse the repository at this point in the history
Use command to add args.
Also, add a default command to make it backward compatible with v4.

Signed-off-by: Seena Fallah <[email protected]>
  • Loading branch information
clwluvw authored and xiaokangwang committed May 28, 2023
1 parent 5a68536 commit e738e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release/container/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit e738e05

Please sign in to comment.