<#898 feat: accept str as a valid Docker image pat...
# flyte-github
a
#898 feat: accept str as a valid Docker image path Pull request opened by AdilFayyaz Motivation Previously, defining a path to a Docker image required a
Path
object. For better usability, we now accept
str
as well. Summary of Changes • Updated the
from_dockerfile
definition to accept either a
Path
or
str
• If a
str
is provided, it is automatically converted to a
Path
• In
from_dockerfile
allow kwargs values to be of type
Any
- fix for mypy type mismatch Test Plan • Added a unit test:
test_dockerfile_with_str_path()
which builds an image using a string file path. flyteorg/flyte-sdk