forked from darcyabjones/pante
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheahelitron.Dockerfile
46 lines (40 loc) · 1.27 KB
/
eahelitron.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
ARG IMAGE
FROM "${IMAGE}" as eahelitron_builder
ARG EAHELITRON_COMMIT
ARG EAHELITRON_REPO
ARG EAHELITRON_PREFIX_ARG
ENV EAHELITRON_PREFIX="${EAHELITRON_PREFIX_ARG}"
LABEL eahelitron.version="${EAHELITRON_COMMIT}"
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 \
git \
&& rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates \
&& mkdir -p "${EAHELITRON_PREFIX}/bin" \
&& cd "${EAHELITRON_PREFIX}/bin" \
&& git clone "${EAHELITRON_REPO}" . \
&& git checkout "${EAHELITRON_COMMIT}" \
&& rm -rf -- .git README.md ChromInfo.txt \
&& mv LICENSE "${EAHELITRON_PREFIX}" \
&& chmod a+x * \
&& sed -i '1d' EAHelitron \
&& sed -i '1i #!/usr/bin/perl' EAHelitron \
&& add_runtime_dep \
libparallel-forkmanager-perl \
perl
ENV PATH="${EAHELITRON_PREFIX}/bin:${PATH}"
RUN set -eu \
&& DEBIAN_FRONTEND=noninteractive \
&& . /build/base.sh \
&& apt-get update \
&& mkdir -p /build/apt \
&& cp "${APT_REQUIREMENTS_FILE}" /build/apt/eahelitron.txt \
&& apt_install_from_file /build/apt/*.txt \
&& rm -rf /var/lib/apt/lists/* \
&& cat /build/apt/*.txt >> "${APT_REQUIREMENTS_FILE}"