- root cause: Technitium image ships /etc/dns as a real directory, so the build-time 'ln -sf /data/dns /etc/dns' created the symlink INSIDE it (/etc/dns/dns) instead of replacing it. Technitium kept writing to the ephemeral container directory and lost everything on restart. - fix: add entrypoint.sh that runs at container start (after HA mounts volumes), removes the real /etc/dns dir, and symlinks it to /config/dns (the persistent addon_config mount). Seeds defaults on first run only. - bump version to 15.4.2
10 lines
269 B
Docker
10 lines
269 B
Docker
ARG BUILD_FROM=ghcr.io/hassio-addons/base:latest
|
|
FROM technitium/dns-server:latest
|
|
|
|
ENV DNS_SERVER_WEB_SERVICE_HTTPS_PORT=53443 \
|
|
DNS_SERVER_WEB_SERVICE_ENABLE_HTTPS=false
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"] |