Cleaned up notes, structure, build, supplied run, etc

This commit is contained in:
Ventz Petkov
2017-03-14 04:37:37 -04:00
parent 08a6019c24
commit 9a282a87b6
6 changed files with 70 additions and 34 deletions
-21
View File
@@ -1,21 +0,0 @@
FROM alpine:latest
EXPOSE 53
RUN apk --update add bind
RUN mkdir -m 0755 -p /var/run/named && chown -R root:named /var/run/named
# /var/cache/bind needs to be owned by "bind"
# since we are mounting, do it manually
# NOTE: Per Dockerfile manual --> need to mkdir the mounted dir to chown
RUN mkdir -m 0755 -p /var/cache/bind && touch /var/cache/bind/docker-init && chown -R named:named /var/cache/bind
# Mounts
# NOTE: Per Dockerfile manual -->
# "if any build steps change the data within the volume
# after it has been declared, those changes will be discarded."
VOLUME ["/etc/bind"]
VOLUME ["/var/cache/bind"]
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]