mirror of
https://github.com/klutchell/unbound-docker.git
synced 2026-10-15 08:02:40 +00:00
Change unbound user to a system user with nologin
Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user