Skip to content

Commit

Permalink
Create docker-entrypoint.sh
Browse files Browse the repository at this point in the history
Signed-off-by: ArchBlood <35392110+ArchBlood@users.noreply.github.com>
  • Loading branch information
ArchBlood authored Nov 12, 2024
1 parent f08bcb8 commit c8c5424
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit c8c5424

Please sign in to comment.