Skip to content

Commit

Permalink
build: freeze python-telegram-bot dependencies
Browse files Browse the repository at this point in the history
- Switch from `alpine` to `slim`, due to missing dependencies in `alpine`
- Freeze versions for `python-telegram-bot` and other packages
    - Some issues caused by latest version of `python-telegram-bot`
    - Freezing other packages allow for quicker dependency resolution
  • Loading branch information
gabrielwong159 committed Jul 2, 2022
1 parent 9fa9867 commit 48b3474
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apis/telemsg/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flask
gunicorn
python-telegram-bot>=12.0.0b1
flask==2.0.1
gunicorn==20.1.0
python-telegram-bot==13.5
2 changes: 1 addition & 1 deletion hosts/telebot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker build -t evs-telebot .
FROM python:3.9-alpine3.12
FROM python:3.9-slim

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions hosts/telebot/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python-telegram-bot>=12.0.0b1
requests
python-telegram-bot==13.5
requests==2.25.1

0 comments on commit 48b3474

Please sign in to comment.