30 lines
612 B
Docker
30 lines
612 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
|
|
|
|
VOLUME /etc/knot
|
|
VOLUME /var/lib/knot
|
|
|
|
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
|
|
|
|
USER knot
|
|
|
|
WORKDIR /var/lib/knot
|
|
|
|
EXPOSE 8053
|
|
|
|
CMD [ "/usr/local/bin/start.sh" ]
|
|
|
|
|