-
Notifications
You must be signed in to change notification settings - Fork 10
/
vsearch.Dockerfile
56 lines (46 loc) · 1.33 KB
/
vsearch.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
53
54
55
56
ARG IMAGE
FROM "${IMAGE}" as vsearch_builder
ARG VSEARCH_VERSION
ARG VSEARCH_URL
ARG VSEARCH_PREFIX_ARG
ENV VSEARCH_PREFIX="${VSEARCH_PREFIX_ARG}"
WORKDIR /tmp
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
autoconf \
automake \
build-essential \
ca-certificates \
libbz2-dev \
wget \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates \
&& wget -O vsearch.tar.gz "${VSEARCH_URL}" \
&& tar -zxf vsearch.tar.gz \
&& cd vsearch*/ \
&& ./autogen.sh \
&& ./configure --prefix="${VSEARCH_PREFIX}" --disable-pdfman \
&& make \
&& make install \
&& add_runtime_dep \
libbz2-1.0 \
zlib1g
FROM "${IMAGE}"
ARG VSEARCH_VERSION
ARG VSEARCH_PREFIX_ARG
ENV VSEARCH_PREFIX="${VSEARCH_PREFIX_ARG}"
ENV PATH="${VSEARCH_PREFIX}/bin:${PATH}"
LABEL vsearch.version="${VSEARCH_VERSION}"
COPY --from=vsearch_builder "${VSEARCH_PREFIX}" "${VSEARCH_PREFIX}"
COPY --from=vsearch_builder "${APT_REQUIREMENTS_FILE}" /build/apt/vsearch.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}"