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:
DarkShyMW
2025-08-23 07:44:45 +03:00
parent bf52d4f6d2
commit c301d0b09b
5 changed files with 29 additions and 42 deletions

18
Docker/.dockerfile Normal file
View 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"]