-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathoccultercut.Dockerfile
51 lines (42 loc) · 1.41 KB
/
occultercut.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
ARG IMAGE
FROM "${IMAGE}" as occultercut_builder
ARG OCCULTERCUT_VERSION
ARG OCCULTERCUT_URL
ARG OCCULTERCUT_PREFIX_ARG
ENV OCCULTERCUT_PREFIX="${OCCULTERCUT_PREFIX_ARG}"
WORKDIR /tmp
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& apt-get install -y \
build-essential \
ca-certificates \
wget \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates \
&& wget -O occultercut.tar.gz "${OCCULTERCUT_URL}" \
&& tar -zxf occultercut.tar.gz \
&& cd OcculterCut* \
&& make -f makefile \
&& mkdir -p "${OCCULTERCUT_PREFIX}/bin" \
&& cp -r OcculterCut "${OCCULTERCUT_PREFIX}/bin" \
&& cd .. \
&& rm -rf -- OcculterCut* occultercut* \
&& add_runtime_dep gnuplot libgomp1
#add_runtime_dep libgomp1 python python-biopython gawk
FROM "${IMAGE}"
ARG OCCULTERCUT_VERSION
ARG OCCULTERCUT_PREFIX_ARG
ENV OCCULTERCUT_PREFIX="${OCCULTERCUT_PREFIX_ARG}"
LABEL occultercut.version="${OCCULTERCUT_VERSION}"
ENV PATH="${OCCULTERCUT_PREFIX}/bin:${PATH}"
COPY --from=occultercut_builder "${OCCULTERCUT_PREFIX}" "${OCCULTERCUT_PREFIX}"
COPY --from=occultercut_builder "${APT_REQUIREMENTS_FILE}" /build/apt/occultercut.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}"