Hoist React apps can be deployed via Docker containers running Tomcat (for Hoist's Grails based back-end) and nginx (to serve compiled client JS/CSS and other assets).
This repo contains a minimal Dockerfile to build the base nginx container, which can be used by app-specific Docker
deployments with additional configurations. A -brotli variant is also published, built on fholzer/nginx-brotli to
enable Brotli compression alongside gzip.
Images are published to Docker Hub as xhio/xh-nginx, producing the variants
below.
| Variant | Base image | Docker tag(s) |
|---|---|---|
| next | nginx:<major.minor> |
next |
| next-brotli | fholzer/nginx-brotli:v<major.minor> |
next-brotli |
| release | nginx:<pinned> |
latest, <xh-release> |
| release-brotli | fholzer/nginx-brotli:v<pinned> |
latest-brotli, <xh-release>-brotli |
The pinned nginx version is the NGINX_VERSION default at the top of the Dockerfile. It is the
only place to bump nginx. next builds use its major.minor. CHANGELOG.md records the nginx version
in each release.
next / next-brotli tags are fully mutable. Every variant is rebuilt on every commit to develop and on a weekly schedule
(Wednesday ~20:00 ET) so they pick up upstream patches to the floating major.minor base image tags. They are intended
for testing and snapshot-style deployments.
release / release-brotli builds publish two tags per variant: an immutable tag (the xh-nginx semver release
recorded in CHANGELOG.md), and a mutable latest (or latest-brotli) tag that floats to the most recent release of
that variant. Docker Hub enforces the immutable tags: any tag matching ^[0-9]+\.[0-9]+\.[0-9]+(-brotli)?$ cannot be
overwritten or deleted.
Every published image carries an SBOM (the packages it contains) and build provenance (its exact base image and build inputs) as attestations. Docker Scout reads these, and anyone can view them:
docker buildx imagetools inspect xhio/xh-nginx:latest --format '{{json .SBOM}}'
docker buildx imagetools inspect xhio/xh-nginx:latest --format '{{json .Provenance}}'- Only the most recent release gets updates. Older release tags stay on Docker Hub but are not patched.
- We cut a new release promptly when nginx ships a security fix on the line we track, or when the upstream base
images fix critical or high CVEs. Each release records its nginx version in
CHANGELOG.md. - For production, use
latest/latest-brotli, or pin an exact release tag and move to each new release as it ships. A pinned tag never changes, so it never picks up security fixes on its own. next/next-brotliare for testing only.- Tags from before the 3.x line (
2.x,v-prefixed,brotli, and1.x-brotli) are unsupported and will not be updated.
This repo uses a single develop branch (and a master branch tracking the most recent release). Both variants build
from develop via a single Dockerfile with one build target per variant, and share the unified
xh-nginx version and docker tag version. To build locally:
docker build -t xh-nginx-local . # standard (default target)
docker build --target brotli -t xh-nginx-local:brotli . # brotli
docker build --build-arg NGINX_VERSION=1.31 -t xh-nginx-local . # float on a major.minor, as `next` doesGitHub Actions workflows live in .github/workflows/. Both build workflows use
build-image.sh. It smoke tests each image with nginx -v and nginx -t, pushes
it with attestations, and moves tags only after confirming the pushed image is the one that was tested.
buildNext.yml- runs on every push todevelop, on a weekly schedule, and on manual dispatch. Builds and pushes bothnextvariants in parallel via a matrix, on the major.minor of the pinned nginx version.buildRelease.yml- manual dispatch frommasteronly. Takes a semver release version as input. Builds and pushes thereleasevariants on the pinned nginx version, then creates the corresponding git tag and GitHub release. To release with a newer nginx patch, bumpNGINX_VERSIONin theDockerfileand updateCHANGELOG.mdin a normal PR before dispatching the workflow. A hotfix release, to a version older than the latest, gets only its numbered tags.lateststays on the newest release.checkNginx.yml- runs daily and on manual dispatch, viacheck-nginx.sh. When both base images publish a newer nginx patch on the pinned line, it opens a PR todevelopthat bumpsNGINX_VERSIONand adds aCHANGELOG.mdline. It opens a "Release due" issue whenlatestlacks updates that a release would ship today: a newer pinned nginx (e.g. after a bump PR is merged), or newer OS packages in the upstream images. The issue lists each update and the steps to release. It updates itself while open and closes itself once a release ships the updates. Close it to skip them. It then stays closed until upstream ships more. That issue is the cue to cut a release. PRs and issues come from the org's XH Build Bot GitHub App. A manual run with "dry run" checked logs what would happen and confirms the bot can push, without changing anything. It opens an issue when a newer nginx major.minor line is available, and another whendevelophas gone 45 days without a commit. GitHub disables scheduled workflows in public repos after 60 days without activity, so that issue is the cue to merge something beforenextstops rebuilding.- Slack alerts - post to #docker-image-updates via the
SLACK_WEBHOOK_URLsecret. Each post calls for action, so the channel stays quiet otherwise. After each daily check,slack-report.shposts when an open PR or bot issue has waited 3+ days, and repeats daily until it is merged or closed. Each workflow posts when a run fails, andbuildRelease.ymlannounces each release. New PRs and issues reach the channel as they open, via the GitHub app for Slack.
📫☎️🌎 info@xh.io | https://xh.io/contact
Copyright © 2026 Extremely Heavy Industries Inc.