Build and push Docker image using Dockerfile and Codesphere package version
Build a Docker image from a Dockerfile and push it to a registry, tagged with the Codesphere version from the package.
oms-cli build image [flags]
# Build image for Codesphere version 1.68.0 and push to specified registry
$ oms-cli build image --dockerfile baseimage/Dockerfile --package codesphere-v1.68.0.tar.gz --registry my-registry.com/my-image
-d, --dockerfile string Path to the Dockerfile to build (required)
-f, --force Force new unpacking of the package even if already extracted
-h, --help help for image
-p, --package string Path to the Codesphere package (required)
-r, --registry string Registry URL to push to (e.g., my-registry.com/my-image) (required)
- oms-cli build - Build and push images to a registry