Change unbound user to a system user with nologin

Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding
2023-11-16 10:57:49 -05:00
parent 5f0f9ed0c2
commit fbfe18dcca
+2 -2
View File
@@ -19,8 +19,8 @@ RUN --mount=type=cache,id=apk-cache-${TARGETARCH},target=/var/cache/apk \
ARG UNBOUND_UID=101
ARG UNBOUND_GID=102
RUN addgroup -g ${UNBOUND_GID} unbound \
&& adduser -u ${UNBOUND_UID} -D -H -G unbound unbound
RUN addgroup -S -g ${UNBOUND_GID} unbound \
&& adduser -S -g unbound -h /var/unbound -u ${UNBOUND_UID} -D -H -G unbound unbound
# hadolint ignore=DL3007
FROM build-base AS ldns