diff --git a/Dockerfile b/Dockerfile index d59e1d8..f07995d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,5 +56,5 @@ COPY --chmod=775 healthcheck.sh / COPY --chmod=775 start.sh / WORKDIR /ex_app/lib -ENTRYPOINT ["/start.sh"] +ENTRYPOINT ["/start.sh", "python3", "main.py"] HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh diff --git a/start.sh b/start.sh index 665bdbb..82eaeb3 100644 --- a/start.sh +++ b/start.sh @@ -60,6 +60,6 @@ if [ -f /frpc.toml ] && [ -n "$HP_SHARED_KEY" ]; then frpc -c /frpc.toml & fi -# Start the main application (adjust it for your ExApp) -echo "Starting main application..." -exec python3 main.py +# Start the main application (launch cmd for ExApp is an argument for this script) +echo "Starting application: $@" +exec "$@"