Before registering, generate a Dockerfile using the latch dockerfile command. This will specify the environment in which the pipeline will run. This command is documented extensively here.

For snakemake workflows, add the --snakemake option to ensure that the right latch plugins get installed.