We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5391ac0 commit bb07f53Copy full SHA for bb07f53
1 file changed
Dockerfile
@@ -5,15 +5,15 @@ FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023 as in
5
ARG TARGETARCH
6
7
# Set download URL based on architecture
8
-RUN if [ "$TARGETARCH" = "amd64" ]; then \
+RUN yum update -y --allowerasing \
9
+ && yum install -y curl unzip --allowerasing \
10
+ && if [ "$TARGETARCH" = "amd64" ]; then \
11
ARCH="x86_64"; \
12
elif [ "$TARGETARCH" = "arm64" ]; then \
13
ARCH="aarch64"; \
14
else \
15
echo "Unsupported architecture: $TARGETARCH" && exit 1; \
16
fi \
- && yum update -y \
- && yum install -y curl unzip \
17
&& curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip" -o awscliv2.zip \
18
&& unzip awscliv2.zip \
19
&& ./aws/install --bin-dir /aws-cli-bin/
0 commit comments