Skip to content

Commit

Permalink
update email, dependencies and python
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Oct 26, 2023
1 parent 3dbd995 commit 3a00fb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-alpine as pybuilder
FROM python:3.11-alpine as pybuilder
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev cargo && \
apk add tiff-dev jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev \
libwebp-dev tcl-dev tk-dev harfbuzz-dev fribidi-dev libimagequant-dev libxcb-dev libpng-dev
Expand All @@ -7,7 +7,7 @@ COPY requirements.txt /requirements.txt
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt


FROM python:3.10-alpine as runner
FROM python:3.11-alpine as runner
RUN apk update && apk add --no-cache libressl jpeg-dev openjpeg-dev libimagequant-dev tiff-dev freetype-dev libxcb-dev


Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
requests==2.31.0
pytelegrambotapi==4.13.0
pytelegrambotapi==4.14.0
beautifulsoup4==4.12.2
tgbot-ping==1.0.7
redis==5.0.0
redis==5.0.1
apscheduler==3.10.4
pymongo==4.5.0
tornado==6.3.3
captcha==0.5.0
passlib==1.7.4
fakeredis==2.18.0
fakeredis==2.19.0
filetype==1.2.0
requests[socks]
tqdm==4.66.1
Expand All @@ -19,5 +19,5 @@ openpyxl==3.1.2
zhconv==1.4.3
jinja2==3.1.2
coloredlogs==15.0.1
meilisearch==0.28.2
pillow==9.5.0
meilisearch==0.28.3
pillow==10.0.1
2 changes: 1 addition & 1 deletion yyetsweb/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def send_mail(to: str, subject: str, context: dict):
password = os.getenv("email_password")
host = os.getenv("email_host", "localhost")
port = os.getenv("email_port", "1025") # mailhog
from_addr = os.getenv("from_addr", "[email protected]")
from_addr = os.getenv("from_addr", "[email protected]")

msg = MIMEText(generate_body(context), "html", "utf-8")
msg["From"] = _format_addr("YYeTs <%s>" % from_addr)
Expand Down

0 comments on commit 3a00fb1

Please sign in to comment.