first pass at Create new empty dir if no reqs found.
first pass at Modifies dockerfile to create new empty directory: /env when no requirements file is found. warns to logger
@@ -280,7 +280,8 @@ def get_requirements_section(launch_project: LaunchProject, builder_type: str) -
requirements_line = CONDA_TEMPLATE.format(buildx_optional_prefix=prefix)
else:
# this means no deps file was found
- requirements_line = ""
+ requirements_line = "RUN mkdir -p env/" # Docker fails otherwise
+ wandb.termwarn("No requirements file found. No packages will be installed.")
return requirements_line
