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 \
|
pango-devel \
|
||||||
pcre-devel \
|
pcre-devel \
|
||||||
pcre2-devel \
|
pcre2-devel \
|
||||||
|
python3 \
|
||||||
|
python3-pip \
|
||||||
readline-devel \
|
readline-devel \
|
||||||
rpm-build \
|
rpm-build \
|
||||||
ruby \
|
ruby \
|
||||||
|
|
@ -45,12 +47,8 @@ RUN yum -y update \
|
||||||
zlib-devel \
|
zlib-devel \
|
||||||
&& yum clean all
|
&& 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.
|
# Install AWS CLI.
|
||||||
RUN pip install awscli --upgrade --user && \
|
RUN pip3 install awscli --upgrade --user && \
|
||||||
ln -s /root/.local/bin/aws /usr/bin/aws
|
ln -s /root/.local/bin/aws /usr/bin/aws
|
||||||
|
|
||||||
RUN gem install ffi:1.12.2 fpm
|
RUN gem install ffi:1.12.2 fpm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue