Use explicit UID/GID 53 (changeable with ARG)

Closes: #62, #60
This commit is contained in:
Ondřej Surý
2025-03-01 07:24:16 +01:00
parent 2ef9e5538e
commit 666994badb
+4 -1
View File
@@ -4,6 +4,9 @@ LABEL org.opencontainers.image.authors="BIND 9 Developers <bind9-dev@isc.org>"
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ARG UID=53
ARG GID=53
ARG BIND9_VERSION=9.21.5
ARG BIND9_CHECKSUM=afe46892950a6676fe198b90aa25b7b856cdc468997fac135dc260f313d6455f
@@ -74,7 +77,7 @@ RUN cd /usr/src && \
rm -rf /usr/src
# Create user and group
RUN addgroup -S bind && adduser -S -H -h /var/cache/bind -G bind bind
RUN addgroup -S -g ${GID} bind && adduser -S -u ${UID} -H -h /var/cache/bind -G bind bind
# Create default configuration file
RUN mkdir -p /etc/bind && chown root:bind /etc/bind/ && chmod 755 /etc/bind