View a markdown version of this page

AL2027 minimal container image - Amazon Linux 2027

AL2027 minimal container image

AL2027 Preview

AL2027 is currently available for preview. It is intended for evaluation and testing only and is not recommended for production workloads.

The AL2027 minimal container image is a separate container image variant. You can use it as a starting point and install the packages that your application requires.

The minimal container image is available in the Amazon ECR Public Gallery.

Minimal container image size

Because the AL2027 minimal container image contains fewer packages than the AL2027 base container image, it is also smaller. The following table compares the AL2027 container image options with the equivalent AL2023 container images.

Note
Image Version Image Size
Amazon Linux 2023 base container image 2023.12.20260831.0 54.6MB
Amazon Linux 2023 minimal container image 2023.12.20260831.0-minimal 37.4MB
Amazon Linux 2027 base container image 2027.0.20260903.0 44.8MB
Amazon Linux 2027 minimal container image 2027.0.20260903.0-minimal 38.9MB

Pull the minimal container image

Public repositories support unauthenticated pulls. For optional authentication, see Authenticate to Amazon ECR Public (optional).

$ docker pull public.ecr.aws/amazonlinux/amazonlinux:2027-minimal

Use the minimal image in a Dockerfile

The minimal container image uses DNF5. Use the dnf command to install packages. The following example installs GCC and removes cached repository data.

FROM public.ecr.aws/amazonlinux/amazonlinux:2027-minimal RUN dnf install -y gcc && dnf clean all