-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving labels and cat help command to app stage in dockerfile
- Loading branch information
1 parent
28df52c
commit 78469c3
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|