forked from theodorejperkins/RECAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
102 lines (93 loc) · 2.07 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
FROM ubuntu:20.04
# build time variables
ARG BUILD_DATE="000000"
ENV BUILD_DATE=${BUILD_DATE}
ARG BUILD_TAG="000000"
ENV BUILD_TAG=${BUILD_TAG}
ARG REPONAME="000000"
ENV REPONAME=${REPONAME}
RUN mkdir -p /opt2 && mkdir -p /data2
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt-get -y upgrade
# Set the locale
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
locales build-essential cmake cpanminus && \
localedef -i en_US -f UTF-8 en_US.UTF-8 && \
cpanm FindBin Term::ReadLine
# install basic dependencies with apt-get
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
cpanminus \
figlet \
g++ \
gcc \
gfortran \
git \
libatlas-base-dev \
libblas-dev \
libboost-dev \
libbz2-dev \
libc-dev \
libcurl4-openssl-dev \
libexpat1-dev \
libfreetype6-dev \
libgd-dev \
libgd-perl \
libglib2.0-dev \
libgpgme11-dev \
libgs-dev \
libgsl-dev \
libgsl0-dev \
libhtml-template-compiled-perl \
libicu-dev \
libjudy-dev \
liblapack-dev \
liblzma-dev \
libmysqlclient-dev \
libncurses-dev \
libopenmpi-dev \
libpng-dev \
librtmp-dev \
libseccomp-dev \
libssl-dev \
libtool \
libxml-libxml-debugging-perl \
libxml-opml-simplegen-perl \
libxml2-dev \
libxslt-dev \
make \
manpages-dev \
openjdk-17-jre-headless \
parallel \
perl \
liblist-allutils-perl \
liblist-moreutils-perl \
libmath-utils-perl \
pigz \
pkg-config \
python3-pip \
python3-dev \
rsync \
squashfs-tools \
unzip \
uuid-dev \
wget \
zlib1g \
zlib1g-dev \
zlibc
# install additional perl packages not available with apt-get
RUN cpanm -v List::BinarySearch
# copy RECAP source code
RUN mkdir /opt2/RECAP/
COPY *.* /opt2/RECAP/
RUN chmod -R a+X /opt2/RECAP/*
ENV PATH="/opt2/RECAP/:${PATH}"
# check recap installation
RUN bash /opt2/RECAP/RECAP_MACS.sh --help
# install macs2
RUN pip install MACS2
# cleanup
WORKDIR /data2
RUN apt-get clean && apt-get purge \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*