mirror of
https://github.com/pschiffe/docker-pdns.git
synced 2024-11-13 03:47:56 +01:00
Allow pdns containers to run rootless
This commit is contained in:
parent
a10e85cdc1
commit
e34dcd9665
6 changed files with 14 additions and 2 deletions
|
@ -13,6 +13,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& dnf --setopt 'tsflags=' install pdns-backend-mysql \
|
||||
&& dnf clean all
|
||||
|
||||
RUN mkdir -p /run/pdns \
|
||||
&& chown -R pdns: /etc/pdns /run/pdns
|
||||
|
||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
ENV VERSION=4.8 \
|
||||
|
|
|
@ -12,6 +12,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& apk add --allow-untrusted subvars.apk \
|
||||
&& rm -rf subvars.apk /var/cache/apk/*
|
||||
|
||||
RUN mkdir -p /run/pdns \
|
||||
&& chown -R pdns: /etc/pdns /run/pdns
|
||||
|
||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
ENV VERSION=4.8 \
|
||||
|
|
|
@ -13,6 +13,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& dnf --setopt 'tsflags=' install pdns-backend-postgresql \
|
||||
&& dnf clean all
|
||||
|
||||
RUN mkdir -p /run/pdns \
|
||||
&& chown -R pdns: /etc/pdns /run/pdns
|
||||
|
||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
ENV VERSION=4.8 \
|
||||
|
|
|
@ -12,6 +12,9 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& apk add --allow-untrusted subvars.apk \
|
||||
&& rm -rf subvars.apk /var/cache/apk/*
|
||||
|
||||
RUN mkdir -p /run/pdns \
|
||||
&& chown -R pdns: /etc/pdns /run/pdns
|
||||
|
||||
COPY pdns.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
ENV VERSION=4.8 \
|
||||
|
|
|
@ -11,7 +11,7 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& dnf clean all
|
||||
|
||||
RUN mkdir -p /etc/pdns-recursor/api.d /run/pdns-recursor \
|
||||
&& chown -R pdns-recursor: /etc/pdns-recursor/api.d /run/pdns-recursor
|
||||
&& chown -R pdns-recursor: /etc/pdns-recursor /run/pdns-recursor
|
||||
|
||||
COPY recursor.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN arch=$([ "$(arch)" = 'aarch64' ] && echo -n 'arm64' || echo -n 'amd64') \
|
|||
&& rm -rf subvars.apk /var/cache/apk/*
|
||||
|
||||
RUN mkdir -p /etc/pdns/api.d /var/run/pdns-recursor \
|
||||
&& chown -R recursor: /etc/pdns/api.d /var/run/pdns-recursor
|
||||
&& chown -R recursor: /etc/pdns /var/run/pdns-recursor
|
||||
|
||||
COPY recursor.conf.tpl docker-entrypoint.sh /
|
||||
|
||||
|
|
Loading…
Reference in a new issue