Fix pip installation on CentOS 7

pip no longer supports Python 2.
This commit is contained in:
Greg Lin 2021-01-26 11:22:47 -06:00
commit 7df91107b9

View file

@ -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