From 7df91107b9526fd34669fbae644997be2e2de4cd Mon Sep 17 00:00:00 2001 From: Greg Lin Date: Tue, 26 Jan 2021 11:22:47 -0600 Subject: [PATCH] Fix pip installation on CentOS 7 pip no longer supports Python 2. --- builder/Dockerfile.centos-7 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/builder/Dockerfile.centos-7 b/builder/Dockerfile.centos-7 index 4ddc1ff..9114277 100644 --- a/builder/Dockerfile.centos-7 +++ b/builder/Dockerfile.centos-7 @@ -29,6 +29,8 @@ RUN yum -y update \ pango-devel \ pcre-devel \ pcre2-devel \ + python3 \ + python3-pip \ readline-devel \ rpm-build \ ruby \ @@ -45,12 +47,8 @@ RUN yum -y update \ zlib-devel \ && yum clean all -# Install pip for python -RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ - python get-pip.py - # Install AWS CLI. -RUN pip install awscli --upgrade --user && \ +RUN pip3 install awscli --upgrade --user && \ ln -s /root/.local/bin/aws /usr/bin/aws RUN gem install ffi:1.12.2 fpm