Skip to content

Commit bb07f53

Browse files
allowerasing curl conflict
1 parent 5391ac0 commit bb07f53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023 as in
55
ARG 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/

0 commit comments

Comments
 (0)