Workflow Environment
Common Dockerfile patterns
Include a Binary
Often times we need a binary in our workflow which we may not want to store in a repository with our workflow code. In this case, we can download a binary in our Dockerfile and unpack it. Below we download and unpack bowtie2.
Run Docker in Docker
Use —base-image dockerwith
latch init to use a base workflow environment which includes Docker. An example of running a containerized bowtie2
aligner in a Latch workflow can be found using latch init --template docker my_bowtie2_example
.
Was this page helpful?