acoustic-carpenter-78188
07/17/2026, 10:25 AMflyte.Image definition itself.
Tested without changing working directory:
import flyte
env = flyte.TaskEnvironment(
"test",
image=flyte.Image.from_debian_base()
.with_apt_packages("git")
.with_pip_packages(
"git+https://github.com/flyteorg/flyte-sdk.git@jan/debugger-download-dir"
)
)
@env.task
async def main() -> str:
msg = "Hello World"
import os
cwd = os.getcwd()
print("Current Working Directory:", cwd)
print(msg)
return msg
if name == "__main__":
flyte.init_from_config("demo.yaml")
run = flyte.run(main)
print(run.url)
--> [flyte] INFO DOWNLOAD_DIR: /home/flyte/.code-server
Tested with changing working directory:
env = flyte.TaskEnvironment(
"test",
image=flyte.Image.from_debian_base()
.with_apt_packages("git")
.with_pip_packages(
"git+https://github.com/flyteorg/flyte-sdk.git@jan/debugger-download-dir"
)
.with_workdir("/tmp"),
)
--> [flyte] INFO DOWNLOAD_DIR: /tmp/.code-server
flyteorg/flyte-sdkacoustic-carpenter-78188
07/17/2026, 2:17 PM