Use pip to install aws cl1 v1.19.5
This commit is contained in:
parent
a0b9eebc4f
commit
6647ff2107
@ -1,31 +1,10 @@
|
||||
FROM alpine:3.12
|
||||
RUN apk add --no-cache ca-certificates git git-lfs openssh curl perl
|
||||
|
||||
ENV GLIBC_VER=2.31-r0
|
||||
RUN apk --no-cache add \
|
||||
binutils \
|
||||
curl \
|
||||
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \
|
||||
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk \
|
||||
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk \
|
||||
&& apk add --no-cache \
|
||||
glibc-${GLIBC_VER}.apk \
|
||||
glibc-bin-${GLIBC_VER}.apk \
|
||||
&& curl -sL https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.1.24.zip -o awscliv2.zip \
|
||||
&& unzip awscliv2.zip \
|
||||
&& aws/install \
|
||||
&& rm -rf \
|
||||
awscliv2.zip \
|
||||
aws \
|
||||
/usr/local/aws-cli/v2/*/dist/aws_completer \
|
||||
/usr/local/aws-cli/v2/*/dist/awscli/data/ac.index \
|
||||
/usr/local/aws-cli/v2/*/dist/awscli/examples \
|
||||
&& apk --no-cache del \
|
||||
binutils \
|
||||
curl \
|
||||
&& rm glibc-${GLIBC_VER}.apk \
|
||||
&& rm glibc-bin-${GLIBC_VER}.apk \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
RUN apk update && apk add git groff python3 python3-dev py3-pip py3-six py3-urllib3 py3-colorama build-base libffi-dev openssl-dev && \
|
||||
pip install 'awscli==1.19.5' && \
|
||||
apk del python3-dev py3-pip build-base libffi-dev openssl-dev && \
|
||||
rm -rf /var/cache/apk/*
|
||||
RUN aws --version
|
||||
|
||||
ADD posix/* /usr/local/bin/
|
||||
ENTRYPOINT ["/usr/local/bin/clone"]
|
||||
|
Loading…
Reference in New Issue
Block a user