This commit is contained in:
Arxip222 2025-12-23 12:16:19 +03:00
parent 0bc47a9e7f
commit 09dfe46a5b
4 changed files with 71 additions and 8 deletions

34
backend/.dockerignore Normal file
View File

@ -0,0 +1,34 @@
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
venv/
env/
ENV/
.venv/
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
.git/
.gitignore
.gitattributes
Dockerfile*
docker-compose*.yml
.dockerignore
drone.yml
tmp/
temp/
*.tmp
Thumbs.db
.DS_Store

35
tg_bot/.dockerignore Normal file
View File

@ -0,0 +1,35 @@
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
venv/
env/
ENV/
.venv/
.vscode/
.idea/
*.swp
*.swo
*~
.DS_Store
.git/
.gitignore
.gitattributes
Dockerfile*
docker-compose*.yml
.dockerignore
drone.yml
tmp/
temp/
*.tmp
Thumbs.db
.DS_Store

View File

@ -10,9 +10,9 @@ RUN apt-get update && apt-get install -y \
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY . ./tg_bot/
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
CMD ["python", "main.py"]
CMD ["python", "tg_bot/main.py"]

View File

@ -1,11 +1,5 @@
import asyncio
import logging
import sys
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
sys.path.insert(0, parent_dir)
from tg_bot.config.settings import settings