From 50d65d79c115cd6046b0ae6dfd61fbe061512a42 Mon Sep 17 00:00:00 2001 From: Olivier Dulcy <106678676+odulcy-mindee@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:47:22 +0200 Subject: [PATCH] build: :construction_worker: clean after Python install (#1339) --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dfde03233f..40c50a8577 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,7 +60,10 @@ RUN wget http://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION mkdir /opt/python/ && \ ./configure --prefix=/opt/python && \ make && \ - make install + make install && \ + cd .. && \ + rm Python-$PYTHON_VERSION.tgz && \ + rm -r Python-$PYTHON_VERSION ENV PATH=/opt/python/bin:$PATH