func()

in client/buildpacks.go [178:193]


func (b *buildpacksFunctionServer) getDockerRunCommand() []string {
	runtimeVars := []string{"docker",
		"run",
		"--network=host",
		// TODO: figure out why these aren't getting set in the buildpack.
		"--env=FUNCTION_TARGET=" + b.target,
		"--env=FUNCTION_SIGNATURE_TYPE=" + b.funcType}

	for _, s := range b.envs {
		if s != "" {
			runtimeVars = append(runtimeVars, fmt.Sprintf("--env=%s", s))
		}
	}

	return append(runtimeVars, image)
}