Skip to content

Commit 4f79197

Browse files
committed
test: Install aws cli
1 parent 7250763 commit 4f79197

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Dockerfile.aws

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ ARG VERSION
22
FROM cookielab/container-image-tools:${VERSION}
33

44
ARG TARGETARCH
5-
RUN apt-get update && apt-get install -y unzip curl && \
6-
if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
5+
RUN apk add --no-cache curl unzip libc6-compat libstdc++ \
6+
&& if [ "$TARGETARCH" = "arm64" ] || [ "$TARGETARCH" = "aarch64" ]; then \
77
URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"; \
88
else \
99
URL="https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip"; \
10-
fi && \
11-
curl -sSLo /tmp/awscliv2.zip "$URL" && \
12-
unzip -q /tmp/awscliv2.zip -d /tmp && \
13-
/tmp/aws/install && \
14-
rm -rf /tmp/aws /tmp/awscliv2.zip && \
15-
apt-get clean
10+
fi \
11+
&& curl -sSLo /tmp/awscliv2.zip "$URL" \
12+
&& unzip -q /tmp/awscliv2.zip -d /tmp \
13+
&& /tmp/aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli \
14+
&& rm -rf /tmp/aws /tmp/awscliv2.zip
1615

1716
COPY config.aws.json /container-image-tools/.docker/config.json

0 commit comments

Comments
 (0)