File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023 as in
55ARG TARGETARCH
66
77# Set download URL based on architecture
8- RUN if [ "$TARGETARCH" = "amd64" ]; then \
8+ RUN yum update -y --allowerasing \
9+ && yum install -y curl unzip --allowerasing \
10+ && if [ "$TARGETARCH" = "amd64" ]; then \
911 ARCH="x86_64" ; \
1012 elif [ "$TARGETARCH" = "arm64" ]; then \
1113 ARCH="aarch64" ; \
1214 else \
1315 echo "Unsupported architecture: $TARGETARCH" && exit 1; \
1416 fi \
15- && yum update -y \
16- && yum install -y curl unzip \
1717 && curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip" -o awscliv2.zip \
1818 && unzip awscliv2.zip \
1919 && ./aws/install --bin-dir /aws-cli-bin/
You can’t perform that action at this time.
0 commit comments