From a9894a40287944512be1e9bbcba9e6302785f217 Mon Sep 17 00:00:00 2001 From: Phus Lu Date: Wed, 24 Sep 2025 12:03:36 +0800 Subject: [PATCH] Use "exec python3" in docker-entrypoint.sh To reduce the processes in metube container --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index d58692c..7e4efea 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -12,8 +12,8 @@ if [ `id -u` -eq 0 ] && [ `id -g` -eq 0 ]; then echo "Changing ownership of download and state directories to ${UID}:${GID}" chown -R "${UID}":"${GID}" /app "${DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}" echo "Running MeTube as user ${UID}:${GID}" - su-exec "${UID}":"${GID}" python3 app/main.py + exec su-exec "${UID}":"${GID}" python3 app/main.py else echo "User set by docker; running MeTube as `id -u`:`id -g`" - python3 app/main.py + exec python3 app/main.py fi