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"]
|
||||
Reference in New Issue
Block a user