nuctl build

On This Page

Build a function


nuctl build function-name [options]


      --base-image string       Name of the base image (default - per-runtime default)
      --build-command String    Commands to run when building the processor image
  -f, --file string             Path to a function-configuration file
      --handler string          Name of a function handler
  -h, --help                    Help for build
  -i, --image string            Name of a Docker image (default - the function name)
      --no-pull                 Don't pull base images - use local versions
      --nuclio-src-dir string   Path to a local directory that contains Nuclio sources (avoid cloning)
      --nuclio-src-url string   URL of Nuclio sources for git clone (default "")
  -o, --output string           Type of the build output - "docker" or "binary" (default "docker")
  -p, --path string             Path to the function's source code
  -r, --registry string         URL of a container registry (env: NUCTL_REGISTRY)
      --runtime string          Runtime (for example, "golang", "golang:1.8", "python:2.7")
      --version string          Version of the Docker image (default "latest")

Options inherited from parent commands

  -k, --kubeconfig string   Path to a Kubernetes configuration file (admin.conf)
  -n, --namespace string    Kubernetes namespace (default "default")
      --platform string     Platform identifier - "kube", "local", or "auto" (default "auto")
  -v, --verbose             Verbose output

See also

  • nuctl — Nuclio command-line interface