File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/agentex/lib/sdk/config Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,15 @@ def __enter__(self) -> BuildContextManager:
9494 dockerignore_path = (
9595 self .build_context_root / self .agent_manifest .build .context .dockerignore
9696 )
97- self .add_dockerignore (
98- root_path = self .path , dockerignore_path = dockerignore_path
99- )
100- ignore_patterns = _extract_dockerignore_patterns (dockerignore_path )
97+ if dockerignore_path .exists ():
98+ self .add_dockerignore (
99+ root_path = self .path , dockerignore_path = dockerignore_path
100+ )
101+ ignore_patterns = _extract_dockerignore_patterns (dockerignore_path )
102+ else :
103+ logger .warning (
104+ f"Dockerignore file not found at { dockerignore_path } , skipping."
105+ )
101106
102107 for directory in self .agent_manifest .build .context .include_paths :
103108 directory_path = self .build_context_root / directory
You can’t perform that action at this time.
0 commit comments