Similar to building images with
docker build, the
policy CLI allows you to build an image
from the contents of a directory and tag that image with a name that consists of an
organization name, a repository name, and a tag:
policy build <directory> -t <organization-name>/<repository-name>:<tag>
Your current directory should contain an OPA bundle manifest, and rego files that make up a policy.
$ policy build . -t omrigazitt1/peoplefinder:1.0.0
Created new image.