FROM cznic/knot@sha256:166fd8956f1a69eeb6558c28f65cedb4ea112d4689317f4a50c2f2787ee6a622

RUN apt-get update && apt-get install -y \
    iproute2 \
    iputils-ping \
    net-tools \
    dnsutils \
    procps \
    && rm -rf /var/lib/apt/lists/*

COPY config/routing/dns-routes.sh /startup.sh
RUN chmod +x /startup.sh

# Zone files and knot config are volume-mounted per instance
CMD ["/startup.sh"]
