This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -5,11 +5,18 @@ LABEL ImageName="knot-dns-hidden-primary"
|
|||||||
|
|
||||||
RUN apk add --no-cache knot knot-utils bash git openssh-client-default
|
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 /etc/knot
|
||||||
VOLUME /var/lib/knot
|
VOLUME /var/lib/knot
|
||||||
|
|
||||||
COPY knot.conf /etc/knot/
|
COPY knot.conf /etc/knot-dist/
|
||||||
COPY my-dnssec-test-domain.de.zone /var/lib/knot/
|
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
|
USER knot
|
||||||
|
|
||||||
@@ -17,6 +24,6 @@ WORKDIR /var/lib/knot
|
|||||||
|
|
||||||
EXPOSE 8053
|
EXPOSE 8053
|
||||||
|
|
||||||
CMD [ "/usr/sbin/knotd" ]
|
CMD [ "/usr/local/bin/start.sh" ]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user