Fix AWS CLI on CentOS 6

This commit is contained in:
Greg Lin 2020-04-29 15:15:47 -05:00
commit 6414a3b7ff

View file

@ -37,8 +37,8 @@ RUN yum -y update \
pcre-devel \ pcre-devel \
pcre2-devel \ pcre2-devel \
pkgconfig \ pkgconfig \
python \ python34 \
python-pip \ python34-pip \
readline-devel \ readline-devel \
rpm-build \ rpm-build \
stunnel \ stunnel \
@ -53,7 +53,7 @@ RUN yum -y update \
&& yum clean all && yum clean all
# 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 chmod 0777 /opt RUN chmod 0777 /opt