docs: Update Bun containerization guide to reflect new DHI process (#23857)

<!--Delete sections as needed -->

## Description

Update the Bun containerization Bun to reflect the new DHI access method

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [x] Editorial review
- [ ] Product review
This commit is contained in:
Pradumna Saraf
2025-12-18 19:14:52 +05:30
committed by GitHub
parent 11171a3364
commit 41d10489f6

View File

@@ -58,13 +58,25 @@ Choosing DHI offers the advantage of a production-ready image that is lightweigh
{{< tabs >}}
{{< tab name="Using Docker Hardened Images" >}}
Docker Hardened Images (DHIs) are available for Bun on [Docker Hub](https://hub.docker.com/hardened-images/catalog/dhi/bun). Unlike using the Docker Official Image, you must first mirror the Bun image into your organization and then use it as your base image. Follow the instructions in the [DHI quickstart](/dhi/get-started/) to create a mirrored repository for Bun.
Mirrored repositories must start with `dhi-`, for example: `FROM <your-namespace>/dhi-bun:<tag>`. In the following Dockerfile, the `FROM` instruction uses `<your-namespace>/dhi-bun:1` as the base image.
Docker Hardened Images (DHIs) are available for Bun in the [Docker Hardened Images catalog](https://hub.docker.com/hardened-images/catalog/dhi/bun). You can pull DHIs directly from the `dhi.io` registry.
1. Sign in to the DHI registry:
```console
$ docker login dhi.io
```
2. Pull the Bun DHI as `dhi.io/bun:1`. The tag (`1`) in this example refers to the version to the latest 1.x version of Bun.
```console
$ docker pull dhi.io/bun:1
```
For other available versions, refer to the [catalog](https://hub.docker.com/hardened-images/catalog/dhi/bun).
```dockerfile
# Use the DHI Bun image as the base image
FROM <your-namespace>/dhi-bun:1
FROM dhi.io/bun:1
# Set the working directory in the container
WORKDIR /app