dhi: add customization working directory (#23973)

<!--Delete sections as needed -->

## Description

Added new working directory override option to image customization.

## Related issues or tickets

https://docker.slack.com/archives/C04M34MRQS1/p1768231979495499

## Reviews

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

- [ ] Editorial review

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
This commit is contained in:
Craig Osterhout
2026-01-14 00:16:05 -08:00
committed by GitHub
parent bd45e88ec6
commit 8dd51947cf

View File

@@ -110,6 +110,8 @@ To customize a Docker Hardened Image, follow these steps:
image. These arguments are appended to the base image's entrypoint.
1. Add [`CMD`](/reference/dockerfile/#cmd) arguments to the image. These
arguments are appended to the base image's command.
1. Override the default (`/`) [working
directory](/reference/dockerfile/#workdir) for the image.
1. Specify a suffix for the customization name that is appended to the
customized image's tag. For example, if you specify `custom` when
customizing the `dhi-python:3.13` image, the customized image will be