mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-26 03:44:56 +08:00
reorder import, upgrade to python 3.9
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
FROM python:3.8-alpine as builder
|
FROM python:3.9-alpine as builder
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev cargo
|
RUN apk update && apk add --no-cache tzdata ca-certificates alpine-sdk libressl-dev libffi-dev cargo
|
||||||
|
# build cryptography separately because it's very slow
|
||||||
|
RUN pip3 install --user cryptography==3.4.7
|
||||||
|
|
||||||
COPY requirements.txt /requirements.txt
|
COPY requirements.txt /requirements.txt
|
||||||
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
|
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM python:3.8-alpine
|
FROM python:3.9-alpine
|
||||||
|
|
||||||
COPY --from=builder /root/.local /usr/local
|
COPY --from=builder /root/.local /usr/local
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
requests==2.24.0
|
requests==2.24.0
|
||||||
pytelegrambotapi==3.7.6
|
pytelegrambotapi==3.7.7
|
||||||
beautifulsoup4==4.9.1
|
beautifulsoup4==4.9.1
|
||||||
tgbot-ping
|
tgbot-ping
|
||||||
redis==3.5.3
|
redis==3.5.3
|
||||||
apscheduler==3.6.3
|
apscheduler==3.6.3
|
||||||
pymongo==3.11.2
|
pymongo==3.11.2
|
||||||
tornado==6.0.4
|
tornado==6.0.4
|
||||||
cryptography==3.4.1
|
|
||||||
redis==3.5.3
|
redis==3.5.3
|
||||||
|
|
||||||
passlib==1.7.4
|
passlib==1.7.4
|
||||||
|
cryptography==3.4.7
|
||||||
@@ -13,20 +13,18 @@ import logging
|
|||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
from urllib import request
|
from urllib import request
|
||||||
|
|
||||||
from datetime import date, timedelta
|
from datetime import date, timedelta
|
||||||
|
from http import HTTPStatus
|
||||||
from passlib.hash import pbkdf2_sha256
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
|
||||||
import redis
|
import redis
|
||||||
import pymongo
|
import pymongo
|
||||||
from http import HTTPStatus
|
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
|
||||||
from tornado import web, ioloop, httpserver, gen, options
|
|
||||||
from tornado.log import enable_pretty_logging
|
|
||||||
from tornado import escape
|
|
||||||
from tornado.concurrent import run_on_executor
|
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
|
from tornado import web, ioloop, httpserver, gen, options, escape
|
||||||
|
from tornado.log import enable_pretty_logging
|
||||||
|
from tornado.concurrent import run_on_executor
|
||||||
|
from passlib.hash import pbkdf2_sha256
|
||||||
|
|
||||||
from crypto import decrypt
|
from crypto import decrypt
|
||||||
|
|
||||||
|
|||||||
@@ -10,16 +10,14 @@ import re
|
|||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
|
|
||||||
import telebot
|
import telebot
|
||||||
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
from telebot import types, apihelper
|
from telebot import types, apihelper
|
||||||
from tgbot_ping import get_runtime
|
from tgbot_ping import get_runtime
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
|
||||||
|
|
||||||
import fansub
|
import fansub
|
||||||
|
|
||||||
from utils import (save_error_dump, get_error_dump, reset_request,
|
from utils import (save_error_dump, get_error_dump, reset_request,
|
||||||
today_request, show_usage, redis_announcement
|
today_request, show_usage, redis_announcement
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user