Read this on the main serverless docs site¶
Knative - Packaging¶
Package CLI Command¶
Using the Serverless CLI tool, you can package your project without deploying it to Knative. This is best used with CI / CD workflows to ensure consistent deployable artifacts.
Running the following command will build and push the container image which is specified with a Dockerfile the corresponding function handler points to: