Skip to content

Commit 6903e56

Browse files
committed
Update base Docker image to Amazon Linux 2023
1 parent afe3217 commit 6903e56

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "enhancement",
3+
"category": "Dockerfile",
4+
"description": "Update base image for AWS CLI v2 Docker image to Amazon Linux 2023"
5+
}

docker/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM public.ecr.aws/amazonlinux/amazonlinux:2 as installer
1+
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 as installer
22
ARG EXE_FILENAME=awscli-exe-linux-x86_64.zip
33
COPY $EXE_FILENAME .
4-
RUN yum update -y \
5-
&& yum install -y unzip \
4+
RUN dnf update -y \
5+
&& dnf install -y unzip \
66
&& unzip $EXE_FILENAME \
77
# The --bin-dir is specified so that we can copy the
88
# entire bin directory from the installer stage into
@@ -11,11 +11,12 @@ RUN yum update -y \
1111
# may be present in /usr/local/bin of the installer stage.
1212
&& ./aws/install --bin-dir /aws-cli-bin/
1313

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
1818
COPY --from=installer /usr/local/aws-cli/ /usr/local/aws-cli/
1919
COPY --from=installer /aws-cli-bin/ /usr/local/bin/
2020
WORKDIR /aws
2121
ENTRYPOINT ["/usr/local/bin/aws"]
22+

0 commit comments

Comments
 (0)