From 04553dfd7b61a890fc93ab1c9de6aa5e35546669 Mon Sep 17 00:00:00 2001 From: farchaab Date: Thu, 14 Nov 2024 09:35:34 +0100 Subject: [PATCH] added docker file --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..328faaf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM mambaorg/micromamba +LABEL org.opencontainers.image.source=https://github.com/metagenlab/zAMP +LABEL org.opencontainers.image.description="Snakemake pipeline for convenient amplicon metagenomics anlysis" +LABEL org.opencontainers.image.licenses=MIT +ENV LANG=C.UTF-8 +ENV SHELL=/bin/bash + +USER root +ENV APT_PKGS="procps ca-certificates" +RUN apt-get update \ + && apt-get install -y --no-install-recommends ${APT_PKGS} \ + && apt-get clean \ + && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log +USER $MAMBA_USER + +COPY --chown=$MAMBA_USER:$MAMBA_USER . /pkg +RUN micromamba config set extract_threads 1 && \ + micromamba install -n base -y -f /pkg/env.yaml && \ + micromamba clean -afy +ARG MAMBA_DOCKERFILE_ACTIVATE=1 +RUN pip install /pkg --no-deps --no-build-isolation --no-cache-dir -vvv +ENV PATH="/opt/conda/bin:$PATH" XDG_CACHE_HOME=/tmp