Skip to content

Commit

Permalink
copy snakemake entrypoint if it exists in all dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush Kamat <[email protected]>
  • Loading branch information
ayushkamat committed Oct 18, 2023
1 parent 7f1dddc commit 2191676
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion latch_cli/docker_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ def generate_dockerfile(
block.write_block(f)

f.write("# Copy workflow data (use .dockerignore to skip files)\n")
f.write("copy . /root/\n\n")

# this will only copy the snakemake entrypoint (if it exists) due to .dockerignore
f.write("copy . .latch/* /root/\n\n")

for block in commands:
if block.order != DockerCmdBlockOrder.postcopy:
Expand Down

0 comments on commit 2191676

Please sign in to comment.