Changes to be committed:
new file: Docker/.dockerfile
new file: Docker/.env.example
new file: Docker/.gitignore
new file: Docker/requirements.txt#
deleted: test_app.py
This commit is contained in:
18
Docker/.dockerfile
Normal file
18
Docker/.dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Установка зависимостей
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Копируем код
|
||||
COPY . .
|
||||
|
||||
# Переменные окружения (можно переопределить при запуске)
|
||||
ENV TELEGRAM_TOKEN=""
|
||||
ENV DERPIBOORU_TOKEN=""
|
||||
ENV CHANNEL_ID=""
|
||||
ENV FILTER_ID=56027
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
4
Docker/.env.example
Normal file
4
Docker/.env.example
Normal file
@@ -0,0 +1,4 @@
|
||||
TELEGRAM_TOKEN=your-telegram-token-here
|
||||
DERPIBOORU_TOKEN=your-derpibooru-token-here
|
||||
CHANNEL_ID=-1002010407572
|
||||
FILTER_ID=56027
|
||||
5
Docker/.gitignore
vendored
Normal file
5
Docker/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
*.pyc
|
||||
sent_images.json
|
||||
bot.log
|
||||
2
Docker/requirements.txt
Normal file
2
Docker/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
python-telegram-bot==20.5
|
||||
aiohttp==3.9.5
|
||||
Reference in New Issue
Block a user