Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/runware_serverless_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ runware serverless deploy [file] [flags]
# override worker settings and base image
runware serverless deploy ./app.py --id my-app --name "My App" \
--max-workers 2 --idle-ttl 120 --gpu-type h100 \
--base-image python:3.11-slim --requirement torch
--base-image python:3.12-slim --requirement torch

# deploy a container source (Dockerfile + container.yaml at the directory root)
runware serverless deploy --id my-app --gpu-type h100 --container ./wrapper
Expand All @@ -106,7 +106,7 @@ runware serverless deploy [file] [flags]
### Options

```
--base-image string Builder base image (code deploys only) (default "python:3.11-slim")
--base-image string Builder base image (code deploys only; needs Python 3.12 or newer) (default "python:3.12-slim")
--container string Directory whose root contains Dockerfile and container.yaml
--env stringArray Environment variable as KEY=VALUE (repeatable)
--env-file stringArray File of KEY=VALUE lines to read environment variables from (repeatable)
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/serverless/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ paths and an invoke example once the application is active.`,
# override worker settings and base image
runware serverless deploy ./app.py --id my-app --name "My App" \
--max-workers 2 --idle-ttl 120 --gpu-type h100 \
--base-image python:3.11-slim --requirement torch
--base-image python:3.12-slim --requirement torch

# deploy a container source (Dockerfile + container.yaml at the directory root)
runware serverless deploy --id my-app --gpu-type h100 --container ./wrapper
Expand Down Expand Up @@ -384,7 +384,7 @@ paths and an invoke example once the application is active.`,
cmd.Flags().Int32Var(&maxWorkers, "max-workers", 1, "Maximum number of workers")
cmd.Flags().Int32Var(&idleTTL, "idle-ttl", 60, "Idle TTL in seconds before scaling down")
cmd.Flags().Int32Var(&scalingDelay, "scaling-delay", 10, "Scaling delay in seconds")
cmd.Flags().StringVar(&baseImage, "base-image", "python:3.11-slim", "Builder base image (code deploys only)")
cmd.Flags().StringVar(&baseImage, "base-image", "python:3.12-slim", "Builder base image (code deploys only; needs Python 3.12 or newer)")
cmd.Flags().StringVar(&gpuType, "gpu-type", "", "GPU type ID (see 'serverless gpus'; required when creating)")
cmd.Flags().StringArrayVar(&requirements, "requirement", nil, "Additional pip package to install (repeatable; code deploys only)")
cmd.Flags().Int32Var(&minWorkers, "min-workers", 0, "Minimum number of workers")
Expand Down
Loading