Spaces:
Build error
Build error
Delete Dockerfile
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractiveARG MICROMAMBA_VERSION=2.8.1-0ARG TARGETARCH
ENV LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ MAMBA_ROOT_PREFIX=/opt/micromamba \ PYTHONUNBUFFERED=1 \ PIP_NO_CACHE_DIR=1 \ STREAMLIT_SERVER_PORT=7860 \ STREAMLIT_SERVER_ADDRESS=0.0.0.0
USER rootRUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates curl bzip2 xz-utils gzip unzip zip git wget tini \ build-essential procps openjdk-17-jre-headless libgomp1 libcurl4-openssl-dev libssl-dev \ && rm -rf /var/lib/apt/lists/*
# Micromamba is used to isolate groups of bioinformatics tools whose Python# dependencies would otherwise conflict in one monolithic environment.RUN case "${TARGETARCH:-amd64}" in \ amd64) MM_ARCH=64 ;; \ arm64) MM_ARCH=aarch64 ;; \ *) MM_ARCH=64 ;; \ esac && \ curl -fsSL "https://github.com/mamba-org/micromamba-releases/releases/download/${MICROMAMBA_VERSION}/micromamba-linux-${MM_ARCH}" \ -o /usr/local/bin/micromamba && chmod +x /usr/local/bin/micromamba
RUN micromamba config prepend channels conda-forge && \ micromamba config append channels bioconda && \ micromamba config set channel_priority strict
# Web application environment.RUN micromamba create -y -n app python=3.11 pip && micromamba clean --all --yes
# Core WGS environment. These programs cover raw-read processing, assembly,# polishing and general sequence utilities.RUN micromamba create -y -n core \ fastp fastqc multiqc spades quast flye unicycler polypolish bwa samtools minimap2 \ mash skani mafft iqtree blast minced \ && micromamba clean --all --yes
# Annotation and surveillance tools are separated to reduce dependency conflicts.RUN micromamba create -y -n annotation bakta prokka \ && micromamba create -y -n surveillance abricate ncbi-amrfinderplus integron_finder mlst panaroo snippy gubbins \ && micromamba create -y -n secondary antismash \ && micromamba clean --all --yes
# Database-heavy tools are isolated from the core environment. Reference# databases themselves are NOT baked into the image; mount them under /data.RUN micromamba create -y -n taxonomy gtdbtk checkm2 \ && micromamba create -y -n functional eggnog-mapper genomad mob_suite \ && micromamba create -y -n epidemiology chewbbaca poppunk \ && micromamba clean --all --yes
ENV PATH=/opt/micromamba/envs/core/bin:/opt/micromamba/envs/annotation/bin:/opt/micromamba/envs/surveillance/bin:/opt/micromamba/envs/secondary/bin:/opt/micromamba/envs/taxonomy/bin:/opt/micromamba/envs/functional/bin:/opt/micromamba/envs/epidemiology/bin:/opt/micromamba/envs/app/bin:$PATH
# Hugging Face Docker Spaces expect the runtime user to be UID 1000.RUN useradd -m -u 1000 -s /bin/bash appuser && \ mkdir -p /app /data /home/appuser/.streamlit /home/appuser/.cache && \ chown -R 1000:1000 /app /data /home/appuser
WORKDIR /appCOPY --chown=1000:1000 requirements.txt /app/requirements.txtRUN /opt/micromamba/envs/app/bin/python -m pip install --no-cache-dir -r /app/requirements.txt
COPY --chown=1000:1000 . /app
ENV HOME=/home/appuser XDG_CACHE_HOME=/home/appuser/.cacheUSER 1000EXPOSE 7860ENTRYPOINT ["/usr/bin/tini", "--"]CMD ["/opt/micromamba/envs/app/bin/streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=7860"]DockerfileDeleted-75