-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·32 lines (27 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:bookworm-slim
RUN set -eux \
&& apt-get update -qyy \
&& apt-get install -qyy --no-install-recommends --no-install-suggests \
ca-certificates \
apt-transport-https \
curl \
lsb-release \
&& rm -rf /var/lib/apt/lists/* /var/log/*
RUN set -eux \
&& curl -s https://deb.frrouting.org/frr/keys.gpg | tee /usr/share/keyrings/frrouting.gpg > /dev/null \
&& echo "deb [signed-by=/usr/share/keyrings/frrouting.gpg] https://deb.frrouting.org/frr/ $(lsb_release -s -c) frr-stable" | tee -a /etc/apt/sources.list.d/frr.list \
&& apt-get update -qyy \
&& apt-get install -qyy --no-install-recommends --no-install-suggests \
tini \
frr \
frr-pythontools \
iputils-ping \
traceroute \
&& rm -rf /var/lib/apt/lists/* /var/log/*
RUN set -eux \
&& mkdir -p /var/run/frr \
&& chown -R frr:frr /etc/frr /var/run/frr
ENTRYPOINT ["/usr/bin/tini", "--"]
EXPOSE 179/tcp
COPY docker-start.sh /usr/lib/frr/docker-start.sh
CMD ["/usr/lib/frr/docker-start.sh"]