-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathhmmer2.Dockerfile
48 lines (39 loc) · 1.17 KB
/
hmmer2.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
ARG IMAGE
FROM "${IMAGE}" as hmmer2_builder
ARG HMMER2_VERSION
ARG HMMER2_URL
ARG HMMER2_PREFIX_ARG
ENV HMMER2_PREFIX="${HMMER2_PREFIX_ARG}"
ENV HMMER_NCPU=1
WORKDIR /tmp
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
wget \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O hmmer.tar.gz "${HMMER2_URL}" \
&& tar xf hmmer.tar.gz \
&& rm hmmer.tar.gz \
&& cd hmmer-*/ \
&& CFLAGS="-g -O3" ./configure --prefix="${HMMER2_PREFIX}" --enable-threads \
&& make \
&& make install
FROM "${IMAGE}"
ARG HMMER2_VERSION
ARG HMMER2_PREFIX_ARG
ENV HMMER2_PREFIX="${HMMER2_PREFIX_ARG}"
ENV HMMER_NCPU=1
ENV PATH="${HMMER2_PREFIX}/bin:${PATH}"
LABEL hmmer2.version="${HMMER2_VERSION}"
COPY --from=hmmer2_builder "${HMMER2_PREFIX}" "${HMMER2_PREFIX}"
COPY --from=hmmer2_builder "${APT_REQUIREMENTS_FILE}" /build/apt/hmmer2.txt
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& apt_install_from_file /build/apt/*.txt \
&& rm -rf /var/lib/apt/lists/* \
&& cat /build/apt/*.txt >> "${APT_REQUIREMENTS_FILE}"