]> git.puffer.fish Git - mirror/frr.git/commitdiff
docker/debian: Make docker images lighter and with less layers 5005/head
authorFrank Villaro-Dixon <frank.villaro@infomaniak.com>
Wed, 18 Sep 2019 13:02:52 +0000 (15:02 +0200)
committerFrank Villaro-Dixon <frank.villaro@infomaniak.com>
Fri, 27 Sep 2019 13:05:08 +0000 (15:05 +0200)
Signed-off-by: Frank Villaro-Dixon <frank.villaro@infomaniak.com>
docker/debian/Dockerfile

index 6ffdd0ccb3ff0cb70d8342413d68d6781bc1a20b..3f830348bcaf3390e8f7ddaaeb9d1b7d36bb12a1 100644 (file)
@@ -1,13 +1,20 @@
 FROM debian:buster
 MAINTAINER Rob Gil (rob@rem5.com)
+
 ENV DEBIAN_FRONTEND noninteractive
 ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
-RUN apt-get update
-RUN apt-get install -y libpcre3-dev apt-transport-https ca-certificates curl wget logrotate \
-    libc-ares2 libjson-c3 vim systemd procps libreadline7 gnupg2 lsb-release apt-utils
+
+RUN apt-get update && \
+    apt-get install -y libpcre3-dev apt-transport-https ca-certificates curl wget logrotate \
+    libc-ares2 libjson-c3 vim procps libreadline7 gnupg2 lsb-release apt-utils && \
+    rm -rf /var/lib/apt/lists/*
+
 RUN curl -s https://deb.frrouting.org/frr/keys.asc | apt-key add -
 RUN echo deb https://deb.frrouting.org/frr $(lsb_release -s -c) frr-stable | tee -a /etc/apt/sources.list.d/frr.list
-RUN apt-get update
-RUN apt-get install -y frr frr-pythontools
+
+RUN apt-get update && \
+    apt-get install -y frr frr-pythontools && \
+    rm -rf /var/lib/apt/lists/*
+
 ADD docker-start /usr/sbin/docker-start
 ENTRYPOINT ["/usr/sbin/docker-start"]