Building and verifying promptfoo container images

Teams running self-hosted promptfoo need to know that the image they deploy is the one they meant to deploy. This page covers checking the official image, building from a pinned source release, and rebuilding derived images without losing traceability.

On this page

How to verify and build promptfoo container images before your team runs them

A platform or security team about to run the self-hosted promptfoo server needs evidence of what image it runs before anyone signs off. The short answer is to pin one release, check that the image matches its official build, and then either run the published image or build your own from the same pinned source. promptfoo is licensed under the MIT license, and its releases are published on GitHub and npm. Release 0.124.1 was published on 8 October 2026 and requires Node.js 22.22.0 or newer, so a source build of that release needs the same Node.js baseline. The image choice is a trade-off between convenience, provenance and maintenance effort. The published image takes the least effort to adopt, while your own build gives you the most control over its contents and supply chain. Confirm the exact verification commands against the official documentation and the release notes for the version you pin, because they can change between releases.

Verifying the official image starts with its digest. A tag such as a version number can be moved to point at different content, so record the sha256 digest of the image you test and deploy by that digest wherever your Docker or Helm configuration accepts it. Next, check the GitHub attestation attached to that digest and confirm it names the promptfoo repository and the release workflow you expect. The exact attestation command and its output depend on your tooling, so confirm them in the self-hosting documentation before you write them into a runbook. If you build your own image, check out the git tag for the release, build with the Node.js version that release requires, and keep the build log and resulting digest with the change record. Any derived image, such as one that adds a corporate certificate authority, should start from a pinned base image and carry labels for the upstream tag and build date so no one mistakes it for the official image.

Refreshing base packages is the cost that recurs. Rebuilding on a schedule picks up operating system patches in the base image, but each rebuild changes the digest, so the attestation check, the image scan and the functional test must run again before the new image replaces the old one. Decide who owns that loop, how often it runs and how a failed check is handled, and whether your own team or a partner under a retainer carries it. Give the review board a short evidence set: the release tag, the digest, the Node.js version, the attestation check output, the build log and the image scan result. DeployOpen can plan, build, verify and document a promptfoo image inside your infrastructure as a fixed-scope engagement, with scope and deliverables agreed in writing first. This evidence supports your compliance assessment. An independent auditor or certification body issues the audit report, not DeployOpen.

Which promptfoo image path fits your team

This table compares three ways to run promptfoo containers: the official image verified before use, a source build at a pinned release, and a derived image with your own certificates or packages. Read each column for who rebuilds, how provenance is shown and what keeps the effort up. The main takeaway: the official image keeps rebuild work with promptfoo, while the other two paths move it to your team, and a derived image adds a second layer to maintain.

DimensionOfficial image, verifiedSource build at pinned releaseDerived image
Who owns rebuildspromptfoo builds the image. Your team pulls the pinned version, verifies it and redeploys.Your team owns every build, from base image choice to the final artifact and its tests.Your team owns the added layer and rebuilds it whenever the base image or your additions change.
How provenance is shownA GitHub attestation tied to the image. Confirm the exact verification steps in the promptfoo documentation.Your build record: the pinned release tag, the commit it points to, your build logs and the resulting digest.The base keeps its upstream attestation. Your layer needs its own record of what was added and from where.
Effort to keep currentLow to moderate. Each move to a newer release means verifying the new image and redeploying it.Highest. Each release needs a rebuild, a retest and an updated toolchain, including Node.js.Source build effort, plus repeat work on CA bundles, package updates and re-applying additions after each base change.
What drives effortNumber of pinned versions in use and whether verification runs automatically at deploy time.Node.js version (release 0.124.1 needs Node.js 22.22.0 or newer, per the npm registry), dependency changes and pipeline upkeep.Count of added packages, how often internal CA certificates rotate and how many environments share the image.
Best fitTeams that accept the published image and need a checkable origin for it.Teams whose policy requires every artifact to be built internally from reviewed source.Teams that must trust internal certificate authorities, add approved packages or standardize the container.

Verify and pin each image before it reaches your registry

The path starts with a chosen release tag, which keeps every later step tied to one version. The CI runner fetches the official image or the source at that tag and checks its provenance before anything is built or pulled. Confirm the exact verification method and its scope in the official docs, because the check is only as strong as the identity you verify against. After the build or pull, the runner records the image digest and pushes the pinned image to your registry, which sits in a separate trust boundary. Deployment uses only that registry copy. A scheduled rebuild at the same tag refreshes base packages and produces a new digest for review.

CI runner and registry as separate trust boundaries, from release tag to rebuild.

Verifying the official promptfoo container image before first deploy

This sequence confirms that the promptfoo container image you deploy is the one the project published, built from the release tag you intended to pin. It runs before the first deployment and leaves a stored record of the digest, the attestation result and a start-up check. Confirm every command and field name with the vendor documentation before your team runs it.

  1. Record the release version to pin

    The platform engineer who owns the deployment chooses one promptfoo release and writes its version and matching tag from the GitHub releases page into the change record. Floating tags such as latest are not allowed in the record. For illustration, npm lists 0.124.1 as published on 8 October 2026, but your team should pin the release it has tested. Done when the version, tag, date and owner appear in the change record and the tag exists on the releases page.

  2. Pull the image by digest

    The platform engineer looks up the sha256 digest for the pinned version in the registry and pulls the image using that digest alone, so the reference carries no tag that could move. Confirm the registry path and digest lookup command with the promptfoo self-hosting documentation before running them. Check that the pull completes and that the local image reports a repository digest equal to the value in the change record. A mismatch stops the process until the cause is found.

  3. Check the GitHub attestation for the digest

    The platform engineer runs the attestation check against the pulled digest with the GitHub CLI command named in the official documentation. The expected tool is the GitHub CLI attestation verification subcommand, but confirm the exact command and flags with the vendor first. Pass: the command reports a valid attestation and a subject digest that matches the image pulled in the previous step. Fail: any signature, digest or policy error, in which case the image is not deployed and the vendor documentation is checked again.

  4. Confirm source repository and release tag

    The reviewer reads the verified attestation output and finds the source repository and the git ref the build ran from. Compare them with the official promptfoo repository on GitHub and with the release tag recorded in the first step. Field names differ between tools, so confirm them with the vendor documentation before comparing. Pass: the repository is the official project and the tag equals the pinned version. Fail: a different repository, a fork, a branch instead of a release tag, or any version mismatch.

  5. Store verification output as evidence

    The security or compliance lead saves the raw output from the pull, attestation and tag comparison into the change record or evidence repository. Each file should show the pinned version, the digest, the date, the operator and the exact commands used. Record a hash of each file so later reviewers can detect edits. Pass: someone who did not run the checks can open the record, find the same digest that appears in the deployment manifest, and follow the steps without asking the operator for context.

  6. Run start-up check after deploy

    After the container is deployed in your environment, the platform engineer starts it from the verified digest and checks that it runs and reports the pinned version. Use the web UI or version endpoint named in the self-hosting documentation, and confirm the endpoint with the vendor first. Pass: the container stays running, the endpoint responds, and the reported version matches the pinned release. Fail: a restart loop or a version mismatch, which means the deployment is rolled back to the last verified digest and the record is updated.

What a pinned source build of promptfoo container images involves

Six components make up a source build, and each one has a single owner who must confirm it in the repository. Work through the cards in order: the pin fixes what you build, and the smoke test decides what you promote.

Pinned Git tag or npm version

Choose one promptfoo release and record its Git tag and npm version together in your build plan. The tag and the npm version must point to the same release, so check both against the GitHub releases list before the first build. The platform team owns this pin. Repeat the check whenever you move to a newer release, because a branch or floating tag would change the build without a review step.

Promptfoo releases

Node.js runtime version

The npm release sets a minimum runtime, so the build stage must start from a Node.js version at or above that floor. Confirm which Node.js version the repository's build files select, and whether the final image carries the runtime or only the built application. The build engineer sets this value and re-checks it on each promptfoo release, since a newer release can raise the minimum.

Base image and update cadence

The build file names a base image, and every operating system package in it inherits that image's patch state. Confirm which base image and tag the repository uses, and whether your team pins it by digest. The platform team owns the rebuild schedule for operating system patches. Write the cadence into the runbook, and rebuild promptfoo on a newer base even when the promptfoo release has not changed.

Build arguments and environment

Build arguments and environment variables change what goes into the image and how it starts. Confirm which arguments the repository's build files accept, and which ones your pipeline sets, before you add any. Keep provider API keys out of build arguments, because values passed at build time can persist in image history. The build engineer owns these values, and the security reviewer approves any that touch credentials or network targets.

Registry for the built image

Decide which registry holds your image, who can push to it, and whether it keeps tags immutable. Record the image digest from the push, because a tag alone can be moved later. The platform team owns push rights and retention. Confirm that the registry's access rules match the team that runs the server, and that your build record names the exact commit and tag you built.

Smoke test before promotion

Start the new image on a fresh data volume, confirm the web UI and API respond, and run one small eval against a test provider before the tag moves to production. The self-hosted server stores data in a local SQLite database, so a test that reuses production data can alter it. QA or the platform team runs the checks, and the release owner signs off. Keep the pass criteria in writing.

Self-hosting docs

Marking derived promptfoo container images so they stay traceable

Every image you derive from the official promptfoo image should carry three facts in its metadata: the upstream version it was built from, the source tag or digest of the upstream image, and the date of the last base package refresh. Without them, an auditor who asks which promptfoo release is running in production, or an on-call engineer tracing a failed eval run, has to reconstruct the answer from build logs that may have been rotated. Confirm which labels the official image already sets by running docker image inspect against the tag you pin, and record the output with your change ticket. Then add your own labels at build time with --label for the owner, the build date and the upstream digest, so the values travel with the image.

The most common way to lose this traceability is a mutable latest tag. A derived image built from latest on Monday can contain a different promptfoo release than the same Dockerfile built on Friday, and the tag name in your registry says nothing about which one is inside. A rebuild that looks identical in your deployment manifest can change the server version under your evaluation history. Pin the upstream image to a specific version tag or digest in the FROM line of your Dockerfile, and treat any derived image whose only tag is latest as unverified until its labels have been checked against the release it claims to contain.

Record the date of the last base package refresh as its own label, separate from the build date, because a rebuild can pull in new operating system packages while the promptfoo version stays the same. Set it in the same build step, with the value taken automatically from the build pipeline. Then keep the labels, the upstream reference and the refresh date in the change record for each rollout, so that an engineer investigating a failure can tell whether it followed a promptfoo upgrade or a base image change. Check the labels on the running container against that record at every deployment, including the first.

How refreshing base packages differs by image path

The official image is built and published by the promptfoo project, so base package updates arrive as new published image tags. Your team does not patch the base layers inside it. Your work is choosing when to adopt a newer tag and verifying that tag before you run it.

  • Update arrival: New base package fixes reach you when the project publishes a new image tag. Check the promptfoo releases page and the release notes before you move.
  • Who triggers the change: Your team pulls the new tag. Nobody on your side rebuilds the image, so the change is a version update in your deployment file.
  • Re-verify: Check the GitHub attestations for the exact tag you plan to deploy, then record the image digest you verified.
  • Before promotion: Start the server with your data volume and provider keys, run a sample eval and confirm the results match what the previous tag produced.

Confirm with the project what each tag contains before you assume a specific fix has landed.

What to check on promptfoo container images before they reach your registry

Run these checks when an image is promoted into the registry that your hosts and clusters pull from, and keep the results with that image. Start with provenance: confirm with GitHub attestations that the image was built by the expected workflow from the expected source, and check the attestation against the exact digest you intend to ship. Then pin that digest in the deployment manifest so a moved or retagged image cannot change what runs. A version tag tells you what you meant to deploy, while the digest tells you what will actually start. Confirm all three together, because a valid attestation for one digest does not protect a manifest that points at another.

Scan the image with your team's own scanner, chosen and run under your own vulnerability policy, and cover both layers: the OS packages in the base image and the Node.js dependencies that come with promptfoo. Check the Node.js runtime in the image as well, since promptfoo 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer. Your team picks the scanner and its thresholds. What matters for promotion is that the scan runs against the same digest you will deploy and that findings are triaged before the image moves forward. Finally, write one promotion record per image containing the digest, the scan result, the attestation outcome and the upstream promptfoo release it was built from, so an incident responder can answer which version runs where without rebuilding anything.

These checks do not make the server safe on their own. The self-hosted promptfoo app is an Express server that serves the web UI and API and keeps its data in a local SQLite database. It has no built-in login, no RBAC and no SSO, and its self-hosting documentation says it is not recommended for production use. Anyone who can reach the port can reach evals and results, so a clean scan does not limit access. Treat the promotion record as one control among several, alongside the network controls that decide which hosts can reach the service and the access controls at your reverse proxy or identity layer that your team provides. Assign an owner for the record and agree in advance who may deploy an image that has an open finding.

Limits to confirm for self-built promptfoo container images

Self-built and verified promptfoo images depend on facts that only your environment can settle, from which digest the attestation covers to whether your build reproduces the upstream artifact. The six cards below set out what to confirm, in what order, before the image runs as a team server. DeployOpen does not issue attestations or certifications, so the verification results you collect are your own evidence.

Attestation covers your digest

GitHub attestations tie a signed provenance statement to one image digest. Tags can move, so confirm the attestation subject matches the exact digest your deployment pulls. Make your verification step check that digest before the container starts, and keep the digest and the verification output in your change record. A passing check covers only the digest it tested. If your team mirrors the image, confirm the mirror keeps the same digest.

Vendor registry and image path

Self-built and mirrored images can drift from the vendor's publishing location, so pin down the source first. Confirm the registry host and image path for the release you pin, then confirm your internal registry pulls from that same source. Check who can push to that path and what the vendor documents about signing. Write the expected host and path into your admission policy so deployments reject images from any other source.

Byte-for-byte rebuild reproducibility

A self-built image can match the upstream release in content yet differ in bytes, which breaks digest comparison. Test whether a build from the pinned source tag reproduces the upstream artifact byte for byte, including the base image digest, timestamps and dependency resolution. If it reproduces, you can compare digests directly. If it does not, fall back to a documented source review and keep build records, including base image digest and lockfile state, for every build.

Data directory across image changes

Self-hosted promptfoo keeps evals and results in a local SQLite database, with media stored in a blobs directory beside it. Confirm the data directory sits on a persistent volume before you swap images, and that the new container reads the same path. Test a restart and an image swap on a copy of the data first. Back up the database and blobs while the server is stopped, or use a consistent copy method your team has tested.

Schema and file changes on upgrade

If a release migrates the SQLite schema on startup, an older image may be unable to open the migrated database. Read the release notes for the version you move to and confirm whether it changes the schema, config files or stored blobs. Build a rollback plan that restores the pre-upgrade backup alongside the previous image. Run the upgrade on a copy first and keep both images available until the checks pass.

Node.js floor in the base image

The npm release 0.124.1 sets a minimum Node.js version, and a base image on an older Node line may fail at install or start. Confirm the Node.js version in your base image meets that floor for the exact release you pin. Check the version in the built image and in the running container, since a base image update can change it. Rebuild and retest whenever you raise the pin or change the base image tag.

npm package

Questions teams ask before verifying or building promptfoo images

What does verifying or building a promptfoo image involve?

Verifying the official image and building your own image from source for a pinned release are separate pieces of work, and the one you choose sets the effort. Verification means checking the GitHub attestations for the image against the release you plan to run, recording its digest and confirming that the release matches the version you approved. Building from source adds a pinned source tag, a base image choice, a build pipeline, dependency and vulnerability scanning, a test run of the built image and documentation for your derived image. Effort rises with the number of images, the base images your standards allow, the number of architectures and how closely your build must follow internal hardening rules. Ask for a written scope that lists each step and deliverable separately.

Can our own team verify or build promptfoo images without a partner?

Yes, a team with container build and supply chain experience can do this in-house. Verification needs someone who can check attestations and compare digests against the release. Building from source also needs someone who can maintain a build pipeline, update the pinned tag and rebuild when a new release arrives. Before you start, settle who approves images, who owns the base image policy and whether your CI can store build records for review. A partner makes the most sense when those skills are thin, a fixed date applies or an auditor will review the pipeline in detail. Either way, check the Node.js requirement for your chosen release, which the npm registry lists as 22.22.0 or newer for release 0.124.1.

What do we need to provide for an image build or verification?

The work needs four things from your side, and the written scope should name who grants each one:

  • Registry access: push rights to your internal registry and a place to keep build records and attestation results.
  • CI runners: build capacity with network routes to the source host and the base image registries your policy allows.
  • A test environment: a non-production host or cluster where the derived image runs and passes a sample eval.
  • A named owner: one person who approves the release pin, the base image and the promotion to each environment.

Confirm early whether your network blocks package registries, since blocked registries often hold up the first build.

How long does promptfoo image verification or building take?

Duration depends mostly on how many environments you run and how many pipeline stages the image must pass before promotion. A single verified image promoted to one environment moves faster than a pipeline that builds from source and promotes through development, staging and production, each with its own pin and test run. Other drivers include approval steps in your change process, access requests to registries and runners and the number of base images and architectures you support. No timeline can be fixed until those are known. Ask for a timeline in the written scope with milestones tied to each environment and to the access you must grant, and ask which milestones depend on your approvals.

What recurs after the first promptfoo image is built or verified?

The first build is mostly one-time work, but several tasks recur for as long as you run the image:

  • Rebuilds when you pin a newer promptfoo release, including a check of its Node.js requirement.
  • Re-verification of attestations for every new digest you adopt.
  • Base package refreshes for the operating system and runtime layers, which change on their own schedule.
  • Retesting the derived image after each rebuild and promotion.
  • Updating build records so each environment shows which release and digest it runs.

Ask the quote to split one-time setup from per-cycle labor and to state how often base refreshes are expected.

Does DeployOpen issue certifications for verified promptfoo images?

No. DeployOpen does not issue audit reports, attestations or certifications. Its work can prepare systems, controls and evidence for a compliance assessment, such as build procedures, verification records, access records and change logs for the derived image. Independent auditors and certification bodies decide whether those controls meet a given standard. Before scoping, ask your auditor which records they will sample and name those evidence items as deliverables in the written scope. Checking the official image's GitHub attestations shows where an artifact came from, but on its own it does not satisfy an assessment.

What drives the cost of a promptfoo image engagement?

Cost follows the written scope, and DeployOpen does not publish a price list. The main drivers are the number of images and environments, whether the work includes building from source or verification only, how much pipeline and registry integration is needed and how many approval and test cycles your process requires. Cost splits into one-time setup, such as the first pipeline, runbook and test run, and recurring work, such as rebuilds and base package refreshes, which can be covered by a retainer. Ask for a quote that lists each deliverable separately, names who provides access and states how scope changes will be priced during the work.

How DeployOpen scopes and delivers promptfoo image verification and builds

DeployOpen plans, implements and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For promptfoo container images, the work starts with a written scope that states which image, which pinned release and which verification steps are in and out of bounds.

How we scope

  • The written scope names the promptfoo version or commit to pin, the base image and the target registry.
  • Scope also sets which checks run: attestation verification of the official image, a source build, or both.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Build from source against the release tag you pin, so the image matches the code you reviewed.
  • Refresh base OS packages on a schedule agreed in the scope, and rebuild when the base image or promptfoo release changes.
  • Label derived images with the upstream promptfoo version and build date so they can be traced.

How we hand over

  • Handover includes the build pipeline, Dockerfile, verification steps and a runbook your team can rerun.
  • Documentation records the pinned release, the verification commands and the steps for each base package refresh.
  • Your team receives the image in your registry, with the scope's test results and a list of open items.

How we support

  • Retainers can cover new promptfoo releases, rebuilds after base image updates and re-verification of attestations.
  • Confirm with your team who owns registry access, signing keys and the pipeline that runs scheduled rebuilds.
  • Read each promptfoo release on GitHub before rebuilding, and rebuild only from a tag you have tested.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.