Refactor Docker setup to unify CLI and HTTP API under a single image. Update entrypoint to use a script for dynamic behavior based on arguments. Revise documentation to clarify usage and service distinctions.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
# Один образ: без аргументов — HTTP API (mtproxy_checkerd), иначе — разовая проверка CLI (mtproxy_checker).
|
||||
if [ "$#" -eq 0 ]; then
|
||||
exec /usr/local/bin/mtproxy_checkerd
|
||||
else
|
||||
exec /usr/local/bin/mtproxy_checker "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user