darrenfoley / Asiago

A Discord bot written in C#
GNU General Public License v3.0
1 stars 0 forks source link

Modify Docker image to not run Asiago as root #11

Closed darrenfoley closed 6 months ago

darrenfoley commented 6 months ago

After installing procps in the container to get access to the ps utility, I've confirmed that Asiago is not running as the "app" user, with UID 1654 by default.

root@da5ac2babc4f:/app# ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
app            1  0.9  0.8 274013016 132276 ?    Ssl  08:35   0:01 ./Asiago
root          31  0.0  0.0   4180  3416 pts/0    Ss   08:36   0:00 bash
root         234  0.0  0.0   8080  3856 pts/0    R+   08:38   0:00 ps aux
root@da5ac2babc4f:/app# id -u app
1654