Merge remote-tracking branch 'origin/main' into bot

This commit is contained in:
Linus E
2022-04-26 11:53:25 +02:00
8 changed files with 2306 additions and 467 deletions

View File

@@ -10,5 +10,8 @@ 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
CMD ["/usr/local/bin/python", "bot.py"]
# Change file permissions
RUN chmod +x ./deploy/start.sh
# Run the app
CMD ["./deploy/start.sh"]

View File

@@ -1,14 +0,0 @@
FROM python:3.10-slim
# Change the working directory to the root of the project
WORKDIR /srv/flask_app
# Install the dependencies
COPY telegram_bot/requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
# Copy the source code to the working directory
COPY telegram_bot /srv/flask_app
# Run the application
CMD ["/usr/local/bin/python", "bot_updates.py"]

View File

@@ -1,3 +1,4 @@
#!/usr/bin/env sh
python bot.py
python bot.py &
python bot_updates.py