

# AL2027 minimal container image
<a name="container-minimal"></a>

**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](https://gallery.ecr.aws/amazonlinux/amazonlinux).

## Pull the minimal container image
<a name="container-minimal-pull"></a>

Public repositories support unauthenticated pulls. For optional authentication, see [Authenticate to Amazon ECR Public (optional)](container-base.md#container-base-authenticate).

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

## Use the minimal image in a Dockerfile
<a name="container-minimal-dockerfile"></a>

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
```