Set Docker permissions to user and group ID 0

Signed-off-by: Maxim Berezin <mberezin@pm.me>
This commit is contained in:
Maxim Berezin 2024-12-02 16:59:09 -05:00
parent 48287b15d4
commit 0dc4f3d561
No known key found for this signature in database
GPG key ID: 67EF3441C8E52C95

View file

@ -14,7 +14,7 @@ COPY NOTICE /NOTICE
COPY npm_licenses.tar.bz2 /npm_licenses.tar.bz2
WORKDIR /prometheus
RUN chown -R nobody:nobody /etc/prometheus /prometheus
RUN chgrp -R 0 /etc/prometheus /prometheus && chmod -R g=u /etc/prometheus /prometheus
USER nobody
EXPOSE 9090