Skip to content

Commit 5391ac0

Browse files
no need specific version
1 parent 1a69856 commit 5391ac0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM --platform=$BUILDPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023 as in
33

44
# Use ARG for platform-specific AWS CLI installer
55
ARG TARGETARCH
6-
# Get latest version of AWS CLI v2
7-
ENV AWS_CLI_VERSION="2.16.17"
86

97
# Set download URL based on architecture
108
RUN if [ "$TARGETARCH" = "amd64" ]; then \
@@ -16,7 +14,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
1614
fi \
1715
&& yum update -y \
1816
&& yum install -y curl unzip \
19-
&& curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}-${AWS_CLI_VERSION}.zip" -o awscliv2.zip \
17+
&& curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-${ARCH}.zip" -o awscliv2.zip \
2018
&& unzip awscliv2.zip \
2119
&& ./aws/install --bin-dir /aws-cli-bin/
2220

0 commit comments

Comments
 (0)