dockerfile: specify `ENTRYPOINT` as `entrypoint.sh`

pull/11/head
Sameer Naik 2015-06-15 20:57:22 +05:30
parent c9e2e7b475
commit 55f794146b
2 changed files with 7 additions and 2 deletions

View File

@ -23,4 +23,4 @@ RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 53/udp 10000/tcp
VOLUME ["${DATA_DIR}"]
CMD ["/sbin/entrypoint.sh"]
ENTRYPOINT ["/sbin/entrypoint.sh"]

View File

@ -48,4 +48,9 @@ fi
echo "Starting named..."
mkdir -m 0775 -p /var/run/named
chown root:${BIND_USER} /var/run/named
exec /usr/sbin/named -u ${BIND_USER} -g
if [ -z "$@" ]; then
exec /usr/sbin/named -u ${BIND_USER} -g
else
exec "$@"
fi