diff --git a/Dockerfile b/Dockerfile index 7eaa0a3..14a7190 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,6 @@ LABEL ImageName="knot-dns-hidden-primary" RUN apk add --no-cache knot knot-utils bash git openssh-client-default -# Create necessary directories -RUN mkdir -p /etc/knot /var/lib/knot/keys /var/lib/knot/zones - -# Copy configuration and zone files COPY knot.conf /etc/knot/knot.conf COPY my-dnssec-test-domain.de.zone /var/lib/knot/my-dnssec-test-domain.de.zone @@ -18,6 +14,9 @@ RUN chown -R knot:knot /etc/knot /var/lib/knot VOLUME /etc/knot VOLUME /var/lib/knot +COPY knot.conf /etc/knot/knot.conf +COPY my-dnssec-test-domain.de.zone /var/lib/knot/my-dnssec-test-domain.de.zone + USER knot WORKDIR /var/lib/knot