Update Dockerfile and pipeline
This commit is contained in:
@@ -11,4 +11,4 @@ RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-locati
|
||||
COPY telegram_bot /srv/flask_app
|
||||
|
||||
# Run the application
|
||||
CMD ["/usr/local/bin/python", "bot.py"]
|
||||
ENTRYPOINT ["/bin/sh" "-c" "python bot.py && python bot_updates.py"]
|
@@ -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"]
|
Reference in New Issue
Block a user