From 40272ac9cde3dd6e1f1e2ccb50e256aa62db7236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Sanz?= Date: Thu, 24 Sep 2026 16:19:13 +0200 Subject: [PATCH] fix(serverless): default the base image to Python 3.12 (RUNSERV-817) --- docs/runware_serverless_deploy.md | 4 ++-- internal/cmd/serverless/deploy.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/runware_serverless_deploy.md b/docs/runware_serverless_deploy.md index 3d7365d..fed0b01 100644 --- a/docs/runware_serverless_deploy.md +++ b/docs/runware_serverless_deploy.md @@ -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 @@ -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) diff --git a/internal/cmd/serverless/deploy.go b/internal/cmd/serverless/deploy.go index 8aa8a3a..a096995 100644 --- a/internal/cmd/serverless/deploy.go +++ b/internal/cmd/serverless/deploy.go @@ -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 @@ -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")