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.
Publish mtproxy_checker Docker image / test (push) Successful in 7s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 53s

This commit is contained in:
Denozordec
2026-04-11 01:08:10 +07:00
parent 5a66f0f2e8
commit 175136d82a
6 changed files with 31 additions and 18 deletions
+8
View File
@@ -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