-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrnammer.Dockerfile
41 lines (34 loc) · 1.14 KB
/
rnammer.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
ARG IMAGE
ARG HMMER2_IMAGE
FROM "${HMMER2_IMAGE}" as hmmer2_builder
FROM "${IMAGE}"
ARG RNAMMER_VERSION
ARG RNAMMER_PREFIX_ARG
ARG RNAMMER_TAR
ENV RNAMMER_PREFIX="${RNAMMER_PREFIX_ARG}"
ENV PATH="${RNAMMER_PREFIX}:${PATH}"
LABEL rnammer.version="${RNAMMER_VERSION}"
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
COPY "${RNAMMER_TAR}" "${RNAMMER_PREFIX}/rnammer.tar.Z"
WORKDIR ${RNAMMER_PREFIX}
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& add_runtime_dep \
libxml-simple-perl\
perl \
&& apt-get update \
&& apt_install_from_file "${APT_REQUIREMENTS_FILE}" \
&& tar xf rnammer.tar.Z \
&& rm rnammer.tar.Z \
&& rm -rf -- man example \
&& sed -i "s~/usr/cbs/bio/src/rnammer-${RNAMMER_VERSION}~${RNAMMER_PREFIX}~" rnammer \
&& sed -i "s~/usr/cbs/bio/bin/linux64/hmmsearch~${HMMER2_PREFIX}/bin/hmmsearch~" rnammer
WORKDIR /