Skip to content

Update Dockerfile to use Amazon Linux 2023 instead of Amazon Linux 2 #9509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

bengaywins
Copy link

Issue #, if available:
Fixes #9508

Description of changes:
Updates the Dockerfile to use Amazon Linux 2023

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@hssyoo hssyoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Just had a minor comment. Could we also generate a chaneglog entry for this PR? You can do this by running ./scripts/new-change with the following:

  • type: enhancement
  • category: Container image
  • description: Update base image for AWS CLI v2 container image to Amazon Linux 2023

@@ -1,8 +1,8 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2 as installer
FROM public.ecr.aws/amazonlinux/amazonlinux:2023 as installer
ARG EXE_FILENAME=awscli-exe-linux-x86_64.zip
COPY $EXE_FILENAME .
RUN yum update -y \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also update this to dnf?

@@ -11,10 +11,10 @@ RUN yum update -y \
# may be present in /usr/local/bin of the installer stage.
&& ./aws/install --bin-dir /aws-cli-bin/

FROM public.ecr.aws/amazonlinux/amazonlinux:2
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
RUN yum update -y \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@hssyoo
Copy link
Contributor

hssyoo commented Jun 16, 2025

Closing in favor of #9551

@hssyoo hssyoo closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants