hot fx 2
This commit is contained in:
parent
0bc47a9e7f
commit
09dfe46a5b
34
backend/.dockerignore
Normal file
34
backend/.dockerignore
Normal 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
35
tg_bot/.dockerignore
Normal 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
|
||||
|
||||
@ -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"]
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user