From 7cd63aadeda90d7835d473687b258c3818428250 Mon Sep 17 00:00:00 2001
From: Mohammed Naser <mnaser@vexxhost.com>
Date: Sun, 14 Jun 2020 13:30:16 -0400
Subject: [PATCH] uwsgi-base: drop packages.txt

When we're building an image that is based off uwsgi-base, the
packages.txt file remains from the previous run which means that it only
install uWSGI again and not the package we're trying to build.

Change-Id: Ic71c47d53566b4ea79e03d19fd355c5c71a62802
---
 docker/uwsgi-base/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/uwsgi-base/Dockerfile b/docker/uwsgi-base/Dockerfile
index b4de8bf45d..8d61969f6e 100644
--- a/docker/uwsgi-base/Dockerfile
+++ b/docker/uwsgi-base/Dockerfile
@@ -22,7 +22,8 @@ RUN assemble uWSGI
 FROM docker.io/opendevorg/python-base:${PYTHON_VERSION}
 
 COPY --from=builder /output/ /output
-RUN /output/install-from-bindep
+RUN /output/install-from-bindep && \
+    rm -rfv /output/packages.txt
 
 ENV UWSGI_MASTER=1 UWSGI_UID=nobody UWSGI_GID=nogroup