Cleaned up notes, structure, build, supplied run, etc
This commit is contained in:
-21
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user