File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
src/latch_cli/docker_utils Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 9
9
import yaml
10
10
11
11
from latch_cli .utils import WorkflowType
12
- from latch_cli .workflow_config import LatchWorkflowConfig , get_or_create_workflow_config
12
+ from latch_cli .workflow_config import (
13
+ BaseImageOptions ,
14
+ LatchWorkflowConfig ,
15
+ get_or_create_workflow_config ,
16
+ )
13
17
14
18
15
19
class DockerCmdBlockOrder (str , Enum ):
@@ -424,8 +428,12 @@ def generate_dockerignore(
424
428
def get_default_dockerfile (pkg_root : Path , * , wf_type : WorkflowType ):
425
429
default_dockerfile = pkg_root / "Dockerfile"
426
430
427
- # shitty: assumption that config is already there so base image will be ignored
428
- config = get_or_create_workflow_config (pkg_root = pkg_root )
431
+ config = get_or_create_workflow_config (
432
+ pkg_root = pkg_root ,
433
+ base_image_type = BaseImageOptions .nextflow
434
+ if wf_type == WorkflowType .nextflow
435
+ else BaseImageOptions .default ,
436
+ )
429
437
430
438
if not default_dockerfile .exists ():
431
439
default_dockerfile = pkg_root / ".latch" / "Dockerfile"
You can’t perform that action at this time.
0 commit comments