modmail-dev / Modmail

A Discord bot that functions as a shared inbox between staff and members, similar to Reddit's Modmail.
https://docs.modmail.dev
GNU Affero General Public License v3.0
1.58k stars 4.59k forks source link

feat(build): drop root privileges, update .dockerignore #3284

Closed suprovsky closed 1 year ago

suprovsky commented 1 year ago

This change will prevent from using root user in order to run the application. I also updated .dockerignore so you have less files in the image. I wasn't sure if you need .git for some reason in the image so I left it inside. But if you don't need it then it should be included in .dockerignore as well.