OCI image deployment
Use OCI images when your application is already packaged outside Zenifra. This flow is recommended for CI pipelines that build the image, publish it to a registry, and promote versions by tag.
When to choose OCI
Choose OCI when:
- your team already uses Docker in production
- the image is generated by GitHub Actions, GitLab CI, Jenkins, or another pipeline
- you want to promote specific tags between environments
- build steps should not run inside Zenifra
- the application must keep the same artifact across platforms
For projects that evolve directly from source code, see GitHub Deployment.
Image requirements
The image must:
- expose a long-running HTTP process
- listen on
0.0.0.0 - use the port configured in the Zenifra project
- receive configuration through environment variables
- start without depending on local files outside the image or configured volume
Avoid generic tags like latest in production. Prefer tags such as 1.4.2, 2026-05-16, or the commit SHA.
Images reserved for Zenifra's own use cannot be used in customer projects. Project creation, image changes, and Preview Environments reject those references with 422 (IMAGE_NOT_ALLOWED, message This image cannot be used); use your own or a public image.
Official images work without changes, including those that run as root and listen on low ports such as 80. For NGINX, for example:
docker.io/nginx:alpineIn that case, set the project port to 80, the port exposed by the image, unless you have changed the image configuration.
Create the project
In the console:
- click Create project in the side menu
- in Project Source, choose OCI Image
- enter the image, for example
ghcr.io/acme/api:1.4.2 - in Public Image, choose Yes or, for a private image, No and fill in the Authentication Type
- configure the application port
- add environment variables
- choose plan, instances, and storage
- create the project and follow the logs

Update the image
To publish a new version:
- generate a new image in your pipeline
- publish the tag to the registry
- change the project image in the console, with the CLI (
zenifra project image set --project <id> --image <image>), with the API, or with the GitHub Action - validate the logs, the public URL, and, on plans with metrics, resource usage
If the image is private, keep the same authentication type defined during creation. For details, see Private registry.
Validation
After publication, confirm:
- the
*.clients.zenifra.comURL responds - the
/healthroute returns success, if it exists - logs do not show startup errors
- CPU, RAM, and HTTP requests appear in the metrics, available from the Premium plan; storage usage shows on every plan
DATABASE_URLand other variables were manually configured
Next steps
FAQ
Can I convert an OCI project to GitHub later?
Yes. In Edit project, in the Deploy group, the Git repository card connects a GitHub, GitLab, or Forgejo repository to a project created from an image. Saving the connection does not publish a new version: the next ones are built from the code, according to the selected update mode. See GitHub deployment and Deploy from Forgejo.
Can I use a private image?
Yes. Zenifra accepts authentication through AWS ECR or a registry user and token/password.
Should I use latest?
Avoid it in production. Immutable tags make rollback, audit, and support more predictable.
My image runs as root or listens on port 80. Does it work?
Yes. Images that run as root and listen on low ports, such as docker.io/nginx:alpine on port 80, work normally. Just set the project Port field to the port exposed by the image.
Last updated on
Preview Environments
Zenifra preview environments for GitHub, GitLab, or Forgejo pull requests or the GitHub Action: 24h default TTL, inherited variables, new storage, hourly cost.
Private registry
Deploy private OCI images on Zenifra with AWS ECR or registry username and token, chosen at project creation, plus best practices and pull error fixes.