diff --git a/centos/Dockerfile b/centos/Dockerfile
index fad419555952102ffcd0dd45638f9f5309844014..a493a6080715651392bbca55eb6de4b493e83a0c 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -598,10 +598,7 @@ RUN version=3.10.2 && \
     cd .. && \
     rm -rf Python-${version}*
 
-ADD python/make-python-portable.py /usr/local/bin/make-python-portable.py
-RUN yum install -y patchelf && \
-    yum clean all && \
-    source /etc/profile && \
+RUN source /etc/profile && \
     make-python-portable.py /opt/python/3.10/bin/python3.10
 
 RUN /opt/python/3.10/bin/python3.10 -m pip --no-cache-dir install -U pip && \