From b78d2f8ed6c4902cb45bc0d3b6e6932a210d8332 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 22 Jan 2019 19:03:07 +0000 Subject: [PATCH] Reorder the copy in the python-builder builder image It really doesn't actually matter, but if we do the apt-get install before the COPY, it can increase the caching efficiency by a billionth of a percent. Depends-On: https://review.openstack.org/632528 Change-Id: I875812c956af1c4739e0986d267a47652bb5e6f3 --- docker/python-builder/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/python-builder/Dockerfile b/docker/python-builder/Dockerfile index ee5da079e4..8f04f6262f 100644 --- a/docker/python-builder/Dockerfile +++ b/docker/python-builder/Dockerfile @@ -15,9 +15,9 @@ FROM python:slim as fake-python -COPY python3-dev.control /tmp/python3-dev.control WORKDIR /tmp RUN apt-get update && apt-get install -y equivs +COPY python3-dev.control /tmp/python3-dev.control RUN equivs-build /tmp/python3-dev.control FROM python:slim as python-builder