-
Notifications
You must be signed in to change notification settings - Fork 119
/
Dockerfile
53 lines (37 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ARG HMMER_VER="3.4"
## Builder ##
FROM ubuntu:jammy as builder
ARG HMMER_VER
RUN apt-get update && apt-get install --no-install-recommends -y \
wget \
build-essential &&\
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN wget http://eddylab.org/software/hmmer/hmmer-${HMMER_VER}.tar.gz &&\
tar -xvf hmmer-${HMMER_VER}.tar.gz &&\
cd hmmer-${HMMER_VER} &&\
./configure &&\
make && make install
## App ##
FROM ubuntu:jammy as app
ARG HMMER_VER
LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="HMMER"
LABEL software.version="${HMMER_VER}"
LABEL description="Biological sequence analysis using profile hidden Markov models"
LABEL website="http://hmmer.org/"
LABEL license="https://github.com/EddyRivasLab/hmmer/blob/master/LICENSE"
LABEL maintainer="Kutluhan Incekara"
LABEL maintainer.email="[email protected]"
# get compiled binaries from builder
COPY --from=builder /usr/local/bin/ /usr/local/bin/
ENV LC_ALL=C
CMD hmmbuild -h && hmmsearch -h
WORKDIR /data
## Test ##
FROM app as test
ARG HMMER_VER
# get test data from source package
COPY --from=builder /hmmer-${HMMER_VER}/tutorial/* .
RUN hmmbuild globins4.hmm globins4.sto &&\
hmmsearch globins4.hmm globins45.fa | tee test.out