Skip to content

Commit

Permalink
Update to awscli v2
Browse files Browse the repository at this point in the history
Old builds were failing due to incompatible versions of PyYAML (which
is a dependency of awscli) and cython_sources. This commit updates
awscli to use v2 which is the suggested update here:
aws/aws-cli#8036 (comment).

This is a potentially breaking change.
  • Loading branch information
jelmnainen committed Apr 8, 2024
1 parent e815b38 commit cf00d01
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
FROM docker:19.03.4

RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update python3 python py-pip coreutils \
&& rm -rf /var/cache/apk/* \
&& pip install awscli \
&& apk --purge -v del py-pip
RUN apk update
RUN apk upgrade
RUN apk add --no-cache --update python3 python py-pip coreutils curl
RUN rm -rf /var/cache/apk/*

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN apk --purge -v del py-pip

ADD run.py /run.py
ADD entrypoint.sh /entrypoint.sh
Expand Down

0 comments on commit cf00d01

Please sign in to comment.