Merge pull request #174 from rstudio/glin-debian12-aws

Fix AWS CLI on PATH for Debian 12; install v2
This commit is contained in:
Greg Lin 2023-07-06 18:51:20 -05:00 committed by GitHub
commit cd3961e38a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,10 +7,14 @@ RUN set -x \
&& echo 'deb-src http://deb.debian.org/debian bookworm main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y curl gcc libcurl4-openssl-dev libicu-dev \
libopenblas0 libpcre2-dev make pipx wget \
libopenblas0 libpcre2-dev make unzip wget \
&& apt-get build-dep -y r-base
RUN pipx install awscli && pipx ensurepath
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf aws awscliv2.zip
RUN chmod 0777 /opt