This commit is contained in:
Untone 2023-09-11 23:08:55 +03:00
parent bab62ae93c
commit 64bfa31100
2 changed files with 4 additions and 5 deletions

View File

@ -2,6 +2,5 @@ FROM python:3.11-slim
WORKDIR /app
COPY . /app
COPY requirements.txt /app/
RUN apt-get update && apt-get install -y git build-essential libffi-dev libssl-dev
RUN pip install --trusted-host pypi.python.org -r /app/requirements.txt
RUN pip install -r /app/requirements.txt
CMD ["python", "bot/main.py"]

View File

@ -6,9 +6,9 @@ from aiogram import Bot, Dispatcher, Router
from aiogram.enums import ParseMode
from aiogram.filters import CommandStart, Command
from aiogram.types import Message, ChatJoinRequest, CallbackQuery
from bot.config import BOT_TOKEN, ADMIN_ID
from bot.handlers.routing import handle_routing
from bot.state import State
from .config import BOT_TOKEN, ADMIN_ID
from .handlers.routing import handle_routing
from .state import State
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)