Sure! Pl
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
2025-07-11 13:23:21 +07:00
commit 5d4d24b49f
19 changed files with 2237 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
FROM python:3.9-slim
# Установка системных зависимостей
RUN apt-get update && apt-get install -y \
iproute2 \
iputils-ping \
net-tools \
&& rm -rf /var/lib/apt/lists/*
# Установка ExaBGP
RUN pip install exabgp
# Создание структуры директорий
RUN mkdir -p /app/scripts /app/data /app/logs
# Копирование файлов
COPY exabgp.conf /app/exabgp.conf
COPY scripts/ /app/scripts/
COPY data/ /app/data/
# Установка прав доступа
RUN chmod +x /app/scripts/start.sh
RUN chmod +x /app/scripts/load_prefixes.py
# Рабочая директория
WORKDIR /app
# Открытие BGP порта
EXPOSE 179
# Команда запуска
CMD ["/app/scripts/start.sh"]