Skip to content

Commit

Permalink
update aws-cli setup
Browse files Browse the repository at this point in the history
python2 (aka 'python' on Debian) is not available anymore in Bookworm.
So we would need to upgrade to python3, but the only thing that uses
python is aws-cli, and newer version of aws-cli includes its own python
version. So let's remove python altogether and use the newer version of
aws-cli instead.
  • Loading branch information
BenoitZugmeyer committed Sep 9, 2024
1 parent 756d2b7 commit 53eeefc
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,14 @@ RUN curl --silent --show-error --fail http://dl.google.com/linux/chrome/deb/pool
&& rm google-chrome.deb


# Install python
RUN apt-get install -y -q --no-install-recommends python

# Install pip
RUN set -x \
&& curl -OL https://bootstrap.pypa.io/pip/2.7/get-pip.py \
&& python get-pip.py \
&& rm get-pip.py

# Install AWS cli
# https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
RUN set -x \
&& pip install awscli
&& apt-get install -y -q --no-install-recommends unzip \
&& cd /tmp \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install

# Deploy deps
RUN apt-get install -y -q --no-install-recommends jq
Expand Down

0 comments on commit 53eeefc

Please sign in to comment.