We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59d0eb7 commit fa75d61Copy full SHA for fa75d61
Dockerfile
@@ -1,9 +1,9 @@
1
FROM public.ecr.aws/amazonlinux/amazonlinux:2 as installer
2
-ARG EXE_FILENAME=awscli-exe-linux-x86_64.zip
3
-COPY $EXE_FILENAME .
+ARG VERSION="2.22.5"
4
RUN yum update -y \
5
- && yum install -y unzip \
6
- && unzip $EXE_FILENAME \
+ && yum install -y curl unzip \
+ && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${VERSION}.zip" -o awscliv2.zip \
+ && unzip awscliv2.zip \
7
# The --bin-dir is specified so that we can copy the
8
# entire bin directory from the installer stage into
9
# into /usr/local/bin of the final stage without
0 commit comments