Retry Alpine package operations and reuse repository indexes (#1347)
## Summary
- Allow up to three attempts for `apk update`, `apk add`, and `apk
upgrade`, with 5- and 15-second delays. Propagate the final failure to
the build.
- Fetch each Alpine repository index once on a healthy build, reuse the
indexes during package installation and upgrades, and remove them in the
same image layer.
The `linux/386` Alpine build in #1341 failed after a transient DNS error
while fetching `APKINDEX`. Build and Release both use this Dockerfile.
## Verification
- Built the CI image from a local server ZIP for all six target
platforms and observed one successful index refresh per platform.
- On `linux/386`, injected HTTP 503 responses for an index and the
OpenJDK 11 package. Both operations recovered, and the package retry
reused the indexes.
- Verified that persistent failures preserve the last exit status, and
built the `linux/amd64` image from the released OpenDJ 5.2.0 ZIP.