Updated image
This commit is contained in:
parent
ae3cdbd157
commit
945843580f
@ -26,6 +26,7 @@ RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-locati
|
||||
|
||||
# Copy the source code to the working directory
|
||||
COPY source /srv/flask_app
|
||||
RUN chmod +x run.sh
|
||||
|
||||
# Run the app
|
||||
CMD ["python", "bot.py", "&", "python", "daily_challenge.py"]
|
||||
CMD ./run.sh
|
13
source/run.sh
Normal file
13
source/run.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Start the first process
|
||||
python bot.py &
|
||||
|
||||
# Start the second process
|
||||
python daily_challenge.py &
|
||||
|
||||
# Wait for any process to exit
|
||||
wait -n
|
||||
|
||||
# Exit with status of process that exited first
|
||||
exit $?
|
Loading…
Reference in New Issue
Block a user