Skip to content

Commit

Permalink
table2asn was added to environment.yml instead to keep the image ligh…
Browse files Browse the repository at this point in the history
…tweight
  • Loading branch information
Jessica Rowell authored and Jessica Rowell committed Nov 14, 2024
1 parent ba84258 commit 57cfd0a
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions tostadas/4.0.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM ubuntu:jammy as app
FROM mambaorg/micromamba:1.5.8 as app

ARG TOSTADAS_VER="4.0.0"
ARG TABLE2ASN_RELEASE_DATE="2023-10-05"

USER root

WORKDIR /

LABEL authors="Jessica Rowell and Ankush Gupta"
LABEL base.image="ubuntu:focal"
LABEL base.image="mambaorg/micromamba:1.5.8"
LABEL dockerfile.version="3"
LABEL software="tostadas"
LABEL software.version=$TOSTADAS_VER
Expand Down Expand Up @@ -39,11 +38,6 @@ RUN micromamba env create -f tostadas/environment.yml && \
echo "source activate tostadas" > ~/.bashrc && \
rm -rf /tostadas

RUN wget -q https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${TABLE2ASN_RELEASE_DATE}/by_program/table2asn/linux64.table2asn.gz && \
gunzip linux64.table2asn.gz && \
mv linux64.table2asn table2asn && \
chmod +x table2asn

ENV PATH=/opt/conda/envs/tostadas/bin:/opt/conda/envs/env/bin:$PATH \
LC_ALL=C.UTF-8

Expand All @@ -57,16 +51,8 @@ WORKDIR /data

# A second FROM insruction creates a new stage
FROM app as test
ARG TABLE2ASN_RELEASE_DATE="2023-10-05"

RUN liftoff --version && \
samtools --version && \
python --version && \
table2asn -help

ARG FILES="table2asn_readme.txt \
SubmissionTemplate.sbt \
short.fsa"

RUN for file in ${FILES}; do wget -q https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${TABLE2ASN_RELEASE_DATE}/documentation/${file}; done && \
table2asn -t SubmissionTemplate.sbt -i short.fsa -o helicase.sqn
table2asn -help

0 comments on commit 57cfd0a

Please sign in to comment.