added entrypoint.sh

This commit is contained in:
Nicholas 2018-05-22 17:47:32 +08:00
parent 202cbd4af9
commit 50f9330b6f

8
entrypoint.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
python3.6 bot.py > bot-log.txt 2>&1 &
nodejs foobar.js > node-log.txt 2>&1 &
for job in $(jobs -p); do
echo Waiting for ${job} to terminate.
wait ${job}
done