<#762 Add example for reusing a base image with ex...
# flyte-github
a
#762 Add example for reusing a base image with existing UV_PYTHON venv Pull request opened by pingsutw Summary • Adds `examples/image/Dockerfile.reuse_venv`: a Dockerfile that creates a custom venv at
/app/venv
with
UV_PYTHON
set, and pre-installs
requests
• Adds `examples/image/reuse_venv.py`: shows how to reuse that image as a Flyte base image via
Image.from_base()
with
.clone(extendable=True)
and
.with_env_vars({"UV_PYTHON": ...})
Test plan • Build the Dockerfile and verify the venv is created at
/app/venv
with
requests
installed • Run
reuse_venv.py
against a Flyte cluster and confirm the task executes successfully Screenshot 2026-03-06 at 10 05 02 PM flyteorg/flyte-sdk