replaced CMD in the docker file with ENTRYPOINT and docker-entrypoint.sh

This commit is contained in:
2025-10-22 16:26:04 +02:00
parent 1729332373
commit 96e9e79aeb
2 changed files with 27 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
bun run ./src/app.ts --today
echo "ntfy_on=$ntfy_on" >> /etc/environment
echo "ntfy_username=$ntfy_username" >> /etc/environment
echo "ntfy_password=$ntfy_password" >> /etc/environment
echo "ntfy_host=$ntfy_host" >> /etc/environment
echo "ntfy_topic=$ntfy_topic" >> /etc/environment
echo "dc_on=$dc_on" >> /etc/environment
echo "dc_webhook=$dc_webhook" >> /etc/environment
echo "dc_botname=$dc_botname" >> /etc/environment
echo "dc_avatar_url=$dc_avatar_url" >> /etc/environment
# Start cron in foreground
exec cron -f