A set of best practice Dockerfiles to build containers for running and developing Snakemake workflows.
snakemake-minimal
- Includes the bare minimum requirements for running Snakemake in a local environment.
snakemake-full
- Includes all dependencies for running Snakemake in any kind of environment.
snakemake-base
- This is the base image that the above images are based off of. You don't want to use this image directly unless you plan to customize your own image.
- What it does:
- Installs gosu
- Adds a
docker-entrypoint.shfile - Adds a
snakemakeuser and group withuid=gid=1000to run Snakemake as a non-root user - Sets the
snakemakeuser to automatically activate the snakemake conda environment
docker build --tag snakemake-base ./snakemake-base
docker build --tag snakemake-minimal ./snakemake-minimal
docker run --rm -it snakemake-minimaldocker build --tag snakemake-base ./snakemake-base
docker build --tag snakemake-full ./snakemake-full
docker run --rm -it snakemake-full