feat: add coredns

This commit is contained in:
2025-05-13 07:34:41 +03:00
parent 43acf825d7
commit 1fb2028259
10 changed files with 103 additions and 0 deletions

26
coredns/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base:7.8.2
# hadolint ignore=DL3006
FROM ${BUILD_FROM}
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG COREDNS_VERSION=1.12.1
WORKDIR /coredns
RUN apt-get update \
&& apt-get install -y ca-certificates libcap2-bin \
&& apt-get clean \
&& curl -sSL -o coredns.tgz \
https://github.com/coredns/coredns/releases/download/v${COREDNS_VERSION}/coredns_${COREDNS_VERSION}_linux_arm64.tgz \
&& tar -xvf coredns.tgz \
&& chmod +x coredns
LABEL \
org.opencontainers.image.title="CoreDNS Add-on" \
org.opencontainers.image.description="CoreDNS server for Home Assistant" \
org.opencontainers.image.url="https://coredns.io" \
org.opencontainers.image.source="https://github.com/coredns/coredns" \
org.opencontainers.image.documentation="https://coredns.io/manual"
COPY rootfs /