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