#!/usr/bin/env sh
/usr/local/bin/gomplate -V -o /etc/php7/php.ini -f /etc/templates/php.ini.tmpl
/usr/local/bin/gomplate -V -o /var/www/app/data/config.php -f /etc/templates/config.php.tmpl
exec supercronic -split-logs /etc/crontabs/nginx 1>/dev/null &
exec php-fpm7 -F &
exec nginx -g "daemon off;"