Skip to content

Commit fa75d61

Browse files
Download binary
1 parent 59d0eb7 commit fa75d61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2 as installer
2-
ARG EXE_FILENAME=awscli-exe-linux-x86_64.zip
3-
COPY $EXE_FILENAME .
2+
ARG VERSION="2.22.5"
43
RUN yum update -y \
5-
&& yum install -y unzip \
6-
&& unzip $EXE_FILENAME \
4+
&& yum install -y curl unzip \
5+
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${VERSION}.zip" -o awscliv2.zip \
6+
&& unzip awscliv2.zip \
77
# The --bin-dir is specified so that we can copy the
88
# entire bin directory from the installer stage into
99
# into /usr/local/bin of the final stage without

0 commit comments

Comments
 (0)