View a markdown version of this page

AL2027 minimal container image - Amazon Linux 2027
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.

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