Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files8 unmodified lines910111213141 unmodified line1617181920213 unmodified lines252627282930313233348 unmodified linesCOPY --chown=$MAMBA_USER:$MAMBA_USER requirements.txt /tmp/requirements.txtRUN micromamba create -y -n genomics -c conda-forge -c bioconda \python=3.11 \pip \1 unmodified lineprokka=1.14.6 \perl-xml-simple=2.25 \perl-xml-parser \streamlit \pandas \biopython \3 unmodified linesRUN micromamba run -n genomics prokka --versionRUN micromamba run -n genomics perl -MXML::Simple -e "print qq(XML::Simple OK\n)"RUN micromamba run -n genomics pip install --no-cache-dir -r /tmp/requirements.txtCOPY --chown=$MAMBA_USER:$MAMBA_USER . /appEXPOSE 7860CMD ["micromamba", "run", "-n", "genomics", "streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=false", "--server.maxUploadSize=200"]8 unmodified lines910111213141516171 unmodified line19202122232425263 unmodified lines303132333435363738394041424344454647484950515253545556578 unmodified linesCOPY --chown=$MAMBA_USER:$MAMBA_USER requirements.txt /tmp/requirements.txt# ncbi-amrfinderplus and blast (BLAST+) are added here. Without them the app# has no AMR or virulence detector available, which is the error this# Dockerfile revision fixes.RUN micromamba create -y -n genomics -c conda-forge -c bioconda \python=3.11 \pip \1 unmodified lineprokka=1.14.6 \perl-xml-simple=2.25 \perl-xml-parser \ncbi-amrfinderplus \blast \streamlit \pandas \biopython \3 unmodified linesRUN micromamba run -n genomics prokka --versionRUN micromamba run -n genomics perl -MXML::Simple -e "print qq(XML::Simple OK\n)"# AMRFinderPlus ships without its reference database. It must be downloaded# once, here, during the build, because the running container has no# guaranteed outbound internet access and the app itself never calls# 'amrfinder -u'. Skipping this step is what produces the "No AMR or# virulence detector is available" message at runtime.RUN micromamba run -n genomics amrfinder -uRUN micromamba run -n genomics amrfinder --versionRUN micromamba run -n genomics amrfinder --list_organisms# BLAST+ confirmation. This is the optional path the app falls back to when# a user uploads their own VFDB or AMR reference FASTA instead of relying on# AMRFinderPlus's built-in database.RUN micromamba run -n genomics blastn -versionRUN micromamba run -n genomics makeblastdb -versionRUN micromamba run -n genomics pip install --no-cache-dir -r /tmp/requirements.txtCOPY --chown=$MAMBA_USER:$MAMBA_USER . /appEXPOSE 7860CMD ["micromamba", "run", "-n", "genomics", "streamlit", "run", "app.py", \"--server.port=7860", "--server.address=0.0.0.0", \"--server.enableXsrfProtection=false", "--server.enableCORS=false", \"--server.maxUploadSize=200"]
Dockerfile+24-1