File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " enhancement" ,
3
+ "category" : " Dockerfile" ,
4
+ "description" : " Update base image for AWS CLI v2 Docker image to Amazon Linux 2023"
5
+ }
Original file line number Diff line number Diff line change 1
- FROM public.ecr.aws/amazonlinux/amazonlinux:2 as installer
1
+ FROM public.ecr.aws/amazonlinux/amazonlinux:2023 as installer
2
2
ARG EXE_FILENAME=awscli-exe-linux-x86_64.zip
3
3
COPY $EXE_FILENAME .
4
- RUN yum update -y \
5
- && yum install -y unzip \
4
+ RUN dnf update -y \
5
+ && dnf install -y unzip \
6
6
&& unzip $EXE_FILENAME \
7
7
# The --bin-dir is specified so that we can copy the
8
8
# entire bin directory from the installer stage into
@@ -11,11 +11,12 @@ RUN yum update -y \
11
11
# may be present in /usr/local/bin of the installer stage.
12
12
&& ./aws/install --bin-dir /aws-cli-bin/
13
13
14
- FROM public.ecr.aws/amazonlinux/amazonlinux:2
15
- RUN yum update -y \
16
- && yum install -y less groff \
17
- && yum clean all
14
+ FROM public.ecr.aws/amazonlinux/amazonlinux:2023
15
+ RUN dnf update -y \
16
+ && dnf install -y less groff \
17
+ && dnf clean all
18
18
COPY --from=installer /usr/local/aws-cli/ /usr/local/aws-cli/
19
19
COPY --from=installer /aws-cli-bin/ /usr/local/bin/
20
20
WORKDIR /aws
21
21
ENTRYPOINT ["/usr/local/bin/aws" ]
22
+
You can’t perform that action at this time.
0 commit comments