Add endpoint telezab/users Add endpoint telezab/users/add Add endpoint telezab/users/del Add endpoint telezab/users/get Add endpoint telezab/regions Add endpoint telezab/regions/add Add endpoint telezab/regions/del Add endpoint telezab/regions/get Rework Active Triggers button now don't need subscription Rework Help button Add option to change what Notification type you want reciving All or Disaster Only Rework Settings button removed some misc buttons Rework Registration mechanism now using POST JSON users/add Rework formating of Zabbix Triggers for Active triggers and Notification from Zabbix
29 lines
788 B
Docker
29 lines
788 B
Docker
FROM python:3.12.3-slim
|
|
LABEL authors="UdoChudo"
|
|
# Установим необходимые пакеты
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
libpq-dev \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Установим рабочую директорию
|
|
WORKDIR /app
|
|
|
|
# Скопируем файлы проекта
|
|
COPY . /app
|
|
|
|
# Установим зависимости проекта
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Откроем порт для нашего приложения
|
|
EXPOSE 5000
|
|
ENV FLASK_APP telezab.py
|
|
ENV ADMIN_CHAT_IDS 0
|
|
ENV TELEGRAM_TOKEN 0
|
|
ENV RABBITMQ_HOST 127.0.0.1
|
|
ENV ZABBIX_URL https://zabbix.is-mis.ru
|
|
ENV ZABBIX_API_TOKEN=0
|
|
ENV PYTHONUNBUFFERED 1
|
|
# Запуск Gunicorn
|
|
CMD ["python3", "telezab.py"] |