Cronjob added inside container
This commit is contained in:
10
docker-entrypoint.sh
Normal file
10
docker-entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user