diff --git a/docker/macros.j2 b/docker/macros.j2
index c10973ef6443e44fdb07296f78b9101ac84b11a4..0774a187da8644edd36c8e3a6e662b36719739e0 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -2,6 +2,6 @@
 {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] -%}
     yum -y install {{ packages | join(' ') }}  && yum clean all
 {%- elif base_distro in ['ubuntu', 'debian'] -%}
-    apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean
+    apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean && rm -rf /var/lib/apt/lists/*
 {%- endif %}
 {%- endmacro %}