瀏覽代碼

add gosu explanation

Rodja Trappe 1 年之前
父節點
當前提交
bf269b9c4d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      docker-entrypoint.sh

+ 1 - 0
docker-entrypoint.sh

@@ -30,4 +30,5 @@ if [ -d "/usr/local/share/fonts" ]; then
   chmod -R 777 /usr/local/share/fonts
 fi
 # Switch to appuser and execute the Docker CMD or passed in command-line arguments.
+# Using gosu let's it run as PID 1 which is required for proper signal handling.
 exec gosu appuser "$@"