diff --git a/Dockerfile b/Dockerfile index 8d2018f..ddc8ff2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,3 @@ COPY --from=builder /root/.local /usr/local COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY . /SearchGram - -ENTRYPOINT ["/usr/local/bin/python"] diff --git a/docker-compose.yml b/docker-compose.yml index 92cde70..6bdeaba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: volumes: - ./sg_data/session:/SearchGram/searchgram/session command: - - client.py + - python client.py bot: image: bennythink/searchgram @@ -19,7 +19,7 @@ services: volumes: - ./sg_data/session:/SearchGram/searchgram/session command: - - bot.py + - python bot.py meili: image: getmeili/meilisearch:v1.1.1 diff --git a/searchgram/bot.py b/searchgram/bot.py index 3ef817a..db73789 100644 --- a/searchgram/bot.py +++ b/searchgram/bot.py @@ -13,9 +13,9 @@ from pyrogram import Client, enums, filters, types from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup +from __init__ import SearchEngine from config import OWNER_ID, TOKEN from init_client import get_client -from searchgram import SearchEngine from utils import setup_logger tgdb = SearchEngine() diff --git a/searchgram/client.py b/searchgram/client.py index 9ba3541..15f2c6c 100644 --- a/searchgram/client.py +++ b/searchgram/client.py @@ -16,9 +16,9 @@ import fakeredis from pyrogram import Client, filters, types +from __init__ import SearchEngine from config import BOT_ID from init_client import get_client -from searchgram import SearchEngine from utils import setup_logger setup_logger()