Skip to content

Commit

Permalink
moving labels and cat help command to app stage in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorpaisie authored Dec 4, 2024
1 parent 28df52c commit 78469c3
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions cat/5.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@ FROM ubuntu:focal AS builder
ARG CAT_VER
ARG DIAMOND_VER

LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="1"
LABEL software="CAT"
LABEL software.version=${CAT_VER}
LABEL description="CAT: a tool for taxonomic classification of contigs and metagenome-assembled genomes (MAGs)."
LABEL website="https://github.com/dutilh/CAT"
LABEL license.url="https://github.com/dutilh/CAT/blob/master/LICENSE.md"
LABEL maintainer="Taylor K. Paisie"
LABEL maintainer.email='[email protected]'

ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
Expand Down Expand Up @@ -46,13 +36,26 @@ RUN wget http://github.com/bbuchfink/diamond/archive/v${DIAMOND_VER}.tar.gz && \
FROM ubuntu:focal AS app
ARG CAT_VER

LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="1"
LABEL software="CAT"
LABEL software.version=${CAT_VER}
LABEL description="CAT: a tool for taxonomic classification of contigs and metagenome-assembled genomes (MAGs)."
LABEL website="https://github.com/dutilh/CAT"
LABEL license.url="https://github.com/dutilh/CAT/blob/master/LICENSE.md"
LABEL maintainer="Taylor K. Paisie"
LABEL maintainer.email='[email protected]'

# Copy necessary files from the builder stage
COPY --from=builder /CAT_pack-${CAT_VER}/ /CAT/
COPY --from=builder /usr/ /usr/

# Add CAT to PATH
ENV PATH="${PATH}:/CAT/CAT_pack"

CMD CAT --help
WORKDIR /data

# Optional stage: Test data
FROM app AS test

Expand Down

0 comments on commit 78469c3

Please sign in to comment.