Cronjob added inside container

This commit is contained in:
2026-04-26 13:25:30 +02:00
parent a5aa6de67b
commit 2eaaf8d6d8
4 changed files with 36 additions and 8 deletions

10
docker-entrypoint.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
unset BUNDLE_PATH
unset BUNDLE_BIN
# Start cron in background
cron
# Start your Ruby process in foreground
ruby /usr/src/app/smartmeter.rb