Skip to content

Commit

Permalink
added docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Nov 14, 2024
1 parent e29ca7a commit 04553df
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 04553df

Please sign in to comment.