replaced CMD in the docker file with ENTRYPOINT and docker-entrypoint.sh
This commit is contained in:
15
docker/docker-entrypoint.sh
Normal file
15
docker/docker-entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user