1
0
Fork 0
mirror of https://github.com/Luzifer/dns.git synced 2024-11-14 00:42:48 +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

12 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 "$@"