#!/bin/bash # Start the cron service in the background service cron start chown -R www-data:www-data /var/www/html/var # Execute the default Docker CMD (which starts Apache in the foreground) exec "$@"