Updated image

This commit is contained in:
Administrator 2022-05-28 17:53:09 +02:00
parent ae3cdbd157
commit 945843580f
2 changed files with 15 additions and 1 deletions

View File

@ -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 the source code to the working directory
COPY source /srv/flask_app COPY source /srv/flask_app
RUN chmod +x run.sh
# Run the app # Run the app
CMD ["python", "bot.py", "&", "python", "daily_challenge.py"] CMD ./run.sh

13
source/run.sh Normal file
View 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 $?