1
0
mirror of https://github.com/Luzifer/dns.git synced 2024-09-19 15:23:03 +00:00
dns/docker-entrypoint.sh
Knut Ahlers ee90549179
Rebuild to use crond and pre-compiled binary
The build process of the binary patched with the cron runner was too
instable as coredns is not properly vendoring their dependencies. This
way the binary is stable (provided by coredns) and the cron is taken
over by alpine crond.

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-03-04 13:41:25 +01:00

13 lines
178 B
Bash
Executable File

#!/usr/local/bin/dumb-init /bin/bash
set -euxo pipefail
if [ "${1:-}" = 'coredns' ]; then
# Start crond in the background
crond
# Start coredns
exec "$@"
fi
exec "$@"