From b4165ada6f501e474f9ea5f9c7ef742fcd3ec79e Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Tue, 26 Apr 2022 09:46:13 +0200 Subject: [PATCH] Update Dockerfile --- telegram_bot/Dockerfile | 4 ++-- telegram_bot/deploy/start.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/telegram_bot/Dockerfile b/telegram_bot/Dockerfile index c2fc640..00e7604 100644 --- a/telegram_bot/Dockerfile +++ b/telegram_bot/Dockerfile @@ -10,5 +10,5 @@ RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-locati # Copy the source code to the working directory COPY telegram_bot /srv/flask_app -# Run the application -ENTRYPOINT ["/bin/sh", "-c", "'python bot.py && python bot_updates.py'"] +# Run the app +CMD ["./deploy/start.sh"] \ No newline at end of file diff --git a/telegram_bot/deploy/start.sh b/telegram_bot/deploy/start.sh index 232326f..75c6e21 100644 --- a/telegram_bot/deploy/start.sh +++ b/telegram_bot/deploy/start.sh @@ -1,3 +1,4 @@ #!/usr/bin/env sh -python bot.py \ No newline at end of file +python bot.py & +python bot_updates.py \ No newline at end of file