<#837 Simplify Dockerfile template virtualenv and ...
# flyte-github
a
#837 Simplify Dockerfile template virtualenv and UV_PYTHON configuration Pull request opened by pingsutw Summary • Replace
${VIRTUALENV:-/opt/venv}
and
${UV_PYTHON:-/opt/venv/bin/python}
ENV fallbacks with explicit
ARG
declarations, fixing BuildKit warnings about undefined variables • Keep conditional virtualenv creation: only create a venv when the base image doesn't already provide
UV_PYTHON
• Simplify the
PATH
update to always prepend
$VIRTUALENV/bin
(harmless no-op if base image provides its own) Test plan • Build a Docker image with default base and verify virtualenv is created at
/opt/venv
• Build with a base image that sets
ENV UV_PYTHON=...
and verify venv creation is skipped • Verify no BuildKit warnings about undefined variables during build flyteorg/flyte-sdk