diff --git a/06_gpu_and_ml/llm-serving/openai_compatible/load_test.py b/06_gpu_and_ml/llm-serving/openai_compatible/load_test.py index 6ac076ad1..3b76fd870 100644 --- a/06_gpu_and_ml/llm-serving/openai_compatible/load_test.py +++ b/06_gpu_and_ml/llm-serving/openai_compatible/load_test.py @@ -14,7 +14,7 @@ modal.Image.debian_slim(python_version="3.11") .pip_install("locust~=2.29.1", "openai~=1.37.1") .env({"MODAL_WORKSPACE": workspace}) - .copy_local_file( + .add_local_file( Path(__file__).parent / "locustfile.py", remote_path="/root/locustfile.py", ) diff --git a/07_web_endpoints/fasthtml-checkboxes/cbx_load_test.py b/07_web_endpoints/fasthtml-checkboxes/cbx_load_test.py index 47ed5028a..c826cfef9 100644 --- a/07_web_endpoints/fasthtml-checkboxes/cbx_load_test.py +++ b/07_web_endpoints/fasthtml-checkboxes/cbx_load_test.py @@ -16,11 +16,11 @@ modal.Image.debian_slim(python_version="3.12") .pip_install("locust~=2.29.1", "beautifulsoup4~=4.12.3", "lxml~=5.3.0") .env({"MODAL_WORKSPACE": workspace, "MODAL_ENVIRONMENT": environment}) - .copy_local_file( + .add_local_file( Path(__file__).parent / "cbx_locustfile.py", remote_path="/root/locustfile.py", ) - .copy_local_file( + .add_local_file( Path(__file__).parent / "constants.py", remote_path="/root/constants.py", ) diff --git a/10_integrations/tailscale/modal_tailscale.py b/10_integrations/tailscale/modal_tailscale.py index afb4472fe..0d9176cbb 100644 --- a/10_integrations/tailscale/modal_tailscale.py +++ b/10_integrations/tailscale/modal_tailscale.py @@ -21,7 +21,7 @@ .apt_install("curl") .run_commands("curl -fsSL https://tailscale.com/install.sh | sh") .pip_install("requests==2.32.3", "PySocks==1.7.1") - .copy_local_file("./entrypoint.sh", "/root/entrypoint.sh") + .add_local_file("./entrypoint.sh", "/root/entrypoint.sh", copy=True) .dockerfile_commands( "RUN chmod a+x /root/entrypoint.sh", 'ENTRYPOINT ["/root/entrypoint.sh"]',