From 1e6c013383794fa1c9784f95454ab5dbd38021ed Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 23 Jan 2023 12:22:24 -0500 Subject: [PATCH] remove default setuptools package which may be old and vulnerable to exploits --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f084bc0..d0540e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,5 +7,6 @@ RUN rpm -iv https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/p && microdnf install postgresql12-devel libcurl-devel gcc openssl-devel python39-devel redhat-rpm-config git make ca-certificates diffutils which \ && ln -s /usr/bin/pip3.9 /usr/bin/pip \ && ln -s /usr/bin/python3.9 /usr/bin/python \ + && rm -rf /usr/lib/python3.9/site-packages/setuptools* \ && pip install -U pip setuptools>=65.5.1 \ && microdnf clean all