Dockerfile: Install awscli from Zip file

This commit is contained in:
Johan Gunnarsson 2022-08-01 19:50:41 +02:00
parent 4b7ace10fb
commit 002c16f896
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,7 @@ RUN apt-get update && \
parallel \
ssh \
sshpass \
awscli && \
unzip && \
([ "$(uname -m)" = "aarch64" ] && \
apt-get --assume-yes \
install gcc-arm-linux-gnueabihf \
@ -46,6 +46,10 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -f /var/log/*.log
RUN wget -q "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -O "awscliv2.zip" && \
unzip -q awscliv2.zip && \
./aws/install && \
rm -rf aws
ENV PATH="/debimg/scripts:${PATH}"
COPY . /debimg
WORKDIR /debimg