From c8c542459ada4ab9adaddd52f58d5cd7dcad14d1 Mon Sep 17 00:00:00 2001 From: ArchBlood <35392110+ArchBlood@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:05:40 -0500 Subject: [PATCH] Create docker-entrypoint.sh Signed-off-by: ArchBlood <35392110+ArchBlood@users.noreply.github.com> --- docker-entrypoint.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docker-entrypoint.sh diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 0000000..c1770eb --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Entry point for Docker container to initialize and start services. + +# Start cron in the background +echo "Starting cron..." +cron || echo "Cron service already running." + +# Check if FrankenPHP should be started and run it +echo "Starting FrankenPHP..." +exec frankenphp run --config /etc/caddy/Caddyfile || echo "::error::FrankenPHP failed to start."