|
| 1 | +FROM ubuntu:noble AS app |
| 2 | + |
| 3 | +# ARG sets environment variables during the build stage |
| 4 | +ARG SEQKIT_VER="2.13.0" |
| 5 | + |
| 6 | +# LABEL instructions tag the image with metadata that might be important to the user |
| 7 | +# Optional, but highly recommended |
| 8 | + |
| 9 | +LABEL base.image="ubuntu:noble" |
| 10 | +LABEL dockerfile.version="1" |
| 11 | +LABEL software="SeqKit" |
| 12 | +LABEL software.version=${SEQKIT_VER} |
| 13 | +LABEL description="SeqKit - a cross-platform and ultrafast toolkit for FASTA/Q file manipulation" |
| 14 | +LABEL website="https://github.com/shenwei356/seqkit" |
| 15 | +LABEL license="https://github.com/shenwei356/seqkit/blob/master/LICENSE" |
| 16 | +LABEL maintainer="Henry Kunerth" |
| 17 | +LABEL maintainer.email="henrykunerth@gmail.com" |
| 18 | +LABEL maintainer2="Erin Young" |
| 19 | +LABEL maintainer2.email="eriny@utah.gov" |
| 20 | + |
| 21 | +# Install dependences (update as needed) |
| 22 | +RUN apt-get update && apt-get install -y --no-install-recommends \ |
| 23 | + wget \ |
| 24 | + ca-certificates \ |
| 25 | + procps \ |
| 26 | + unzip && \ |
| 27 | + apt-get autoclean && rm -rf /var/lib/apt/lists/* |
| 28 | + |
| 29 | +# download SEQKIT and organize directories |
| 30 | +RUN wget -q https://github.com/shenwei356/seqkit/releases/download/v${SEQKIT_VER}/seqkit_linux_amd64.tar.gz && \ |
| 31 | + tar -xzf seqkit_linux_amd64.tar.gz && \ |
| 32 | + mv seqkit /usr/local/bin/. && \ |
| 33 | + rm seqkit_linux_amd64.tar.gz && \ |
| 34 | + mkdir /data |
| 35 | + |
| 36 | +# singularity compatibility |
| 37 | +ENV LC_ALL=C |
| 38 | + |
| 39 | +CMD ["seqkit", "--help"] |
| 40 | + |
| 41 | +# WORKDIR sets working directory |
| 42 | +WORKDIR /data |
| 43 | + |
| 44 | +# A second FROM insruction creates a new stage |
| 45 | +# We use `test` for the test image |
| 46 | +FROM app AS test |
| 47 | + |
| 48 | +WORKDIR /test |
| 49 | + |
| 50 | +RUN seqkit --help |
| 51 | + |
| 52 | +#download test .fasta and check that SEQKIT can run to generate stats |
| 53 | +RUN wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa && \ |
| 54 | + seqkit stat * |
0 commit comments