以下會介紹幾點安全撰寫 dockerfile 的技巧不要在 Dockerfile 使用 root 用戶執行使用 groupadd 和 useradd 創建使用者使用 dockerfile 的 USER 來指定使用者