Files
knot-dns/Dockerfile
Wolfgang Hottgenroth 9e9c607fa3
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix dockerfile 17
2025-10-24 21:28:12 +02:00

27 lines
598 B
Docker

FROM alpine:3.22.2
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="knot-dns-hidden-primary"
RUN apk add --no-cache knot knot-utils bash git openssh-client-default
# Create distribution directories for config templates
RUN mkdir -p /etc/knot-dist /var/lib/knot-dist
COPY knot.conf /etc/knot-dist/
COPY my-dnssec-test-domain.de.zone /var/lib/knot-dist/
COPY start.sh /usr/local/bin/start.sh
# Make start script executable
RUN chmod +x /usr/local/bin/start.sh
WORKDIR /var/lib/knot
VOLUME /etc/knot
VOLUME /var/lib/knot
EXPOSE 53
CMD [ "/usr/local/bin/start.sh" ]