Run the container as a non-root user

Add a static UID/GID 911 user (matching the socket-proxy/adguard-cidre
convention) and drop to it before running main.py. No PUID/PGID env var
or entrypoint chown logic needed here, unlike adguard-cidre — this
container has no volume mount and writes nothing to disk.
This commit is contained in:
Djeex
2026-08-23 14:28:13 +02:00
parent 7fb3663097
commit 6fc34b9df4
+4
View File
@@ -20,4 +20,8 @@ CMD ["pytest", "-v"]
FROM base
RUN addgroup -g 911 nvbot && adduser -D -u 911 -G nvbot nvbot
USER nvbot
CMD ["python", "main.py"]