Fix pip installation on CentOS 7
pip no longer supports Python 2.
This commit is contained in:
parent
62a30c3b35
commit
7df91107b9
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue