-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgffpal.Dockerfile
53 lines (43 loc) · 1.35 KB
/
gffpal.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
ARG IMAGE
FROM "${IMAGE}" as gffpal_builder
ARG GFFPAL_COMMIT
ARG GFFPAL_REPO
ARG GFFPAL_PREFIX_ARG
ENV GFFPAL_PREFIX="${GFFPAL_PREFIX_ARG}"
WORKDIR /tmp
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
python3 \
python3-pip \
python3-setuptools \
python3-wheel \
python3-biopython \
git \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates \
&& git clone "${GFFPAL_REPO}" . \
&& git fetch --tags \
&& git checkout "${GFFPAL_COMMIT}" \
&& pip3 install --prefix="${GFFPAL_PREFIX}" . \
&& add_runtime_dep python3 python3-biopython
FROM "${IMAGE}"
ARG GFFPAL_COMMIT
ARG GFFPAL_PREFIX_ARG
ENV GFFPAL_PREFIX="${GFFPAL_PREFIX_ARG}"
LABEL gffpal.version="${GFFPAL_COMMIT}"
ENV PATH "${GFFPAL_PREFIX}/bin:${PATH}"
ENV PYTHONPATH "${GFFPAL_PREFIX}/lib/python3.7/site-packages:${PYTHONPATH}"
COPY --from=gffpal_builder "${GFFPAL_PREFIX}" "${GFFPAL_PREFIX}"
COPY --from=gffpal_builder "${APT_REQUIREMENTS_FILE}" /build/apt/gffpal.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}"