1414
1515
1616class BuildConfig (BaseModel ):
17- use_custom_dockerfile : bool = False
1817 runtime : Optional [str ] = None
1918 framework : Optional [str ] = "morph"
2019 package_manager : Optional [str ] = None
@@ -101,7 +100,6 @@ def dump_project_yaml(project: MorphProject) -> str:
101100 source_paths = "\n - " .join (["" ] + project .source_paths )
102101
103102 # Default values
104- build_use_custom_dockerfile = "false"
105103 build_runtime = ""
106104 build_framework = ""
107105 build_package_manager = ""
@@ -120,10 +118,6 @@ def dump_project_yaml(project: MorphProject) -> str:
120118
121119 # Set values if build exists
122120 if project .build :
123- if project .build .use_custom_dockerfile is not None :
124- build_use_custom_dockerfile = str (
125- project .build .use_custom_dockerfile
126- ).lower ()
127121 if project .build .runtime :
128122 build_runtime = project .build .runtime or ""
129123 if project .build .framework :
@@ -168,23 +162,24 @@ def dump_project_yaml(project: MorphProject) -> str:
168162 deployment_provider = "aws"
169163
170164 return f"""
171- # Cloud Settings
172- profile: { project .profile } # Defined in the Profile Section in `~/.morph/credentials`
173- project_id: { project .project_id or "null" }
165+ version: '1'
174166
175167# Framework Settings
176168default_connection: { project .default_connection }
177169source_paths:{ source_paths }
178170
171+ # Cloud Settings
172+ # profile: { project .profile } # Defined in the Profile Section in `~/.morph/credentials`
173+ # project_id: { project .project_id or "null" }
174+
179175# Build Settings
180176build:
181- use_custom_dockerfile: { build_use_custom_dockerfile }
182- # These settings are required when use_custom_dockerfile is false
177+ # These settings are required when there is no Dockerfile in the project root.
183178 # They define the environment in which the project will be built
184179 runtime: { build_runtime } # python3.9, python3.10, python3.11, python3.12
185180 framework: { build_framework }
186181 package_manager: { build_package_manager } # pip, poetry, uv
187- # These settings are required when use_custom_dockerfile is true
182+ # These settings are required when there is a Dockerfile in the project root.
188183 # They define how the Docker image will be built
189184 # context: { build_context }
190185 # build_args:{ build_args_str }
0 commit comments