-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
94 lines (87 loc) · 2.17 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
ARG UBUNTU_VERSION=16
FROM ubuntu:16.04 AS base-16
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
bzip2 \
default-jre \
git \
perl-base \
php7.0-cli \
php7.0-xml \
php7.0-mysql \
python-matplotlib \
python-numpy \
python-pysam \
r-base-core \
r-cran-optparse \
r-cran-robustbase \
r-cran-foreach \
r-cran-doparallel \
r-cran-mass \
tabix \
unzip \
wget
FROM ubuntu:18.04 AS base-18
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
bzip2 \
default-jre \
git \
perl-base \
php7.2-cli \
php7.2-xml \
php7.2-mysql \
python-matplotlib \
python-numpy \
python-pysam \
r-base-core \
r-cran-optparse \
r-cran-robustbase \
r-cran-foreach \
r-cran-doparallel \
r-cran-mass \
tabix \
unzip \
wget
FROM base-${UBUNTU_VERSION} AS tools-ubuntu-16
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
build-essential \
cmake \
cpanminus \
libbz2-dev \
liblzma-dev \
libncurses5-dev \
libpng-dev \
libmysqlclient-dev \
libqt5sql5-mysql \
libqt5xmlpatterns5-dev \
libssl-dev \
qt5-default \
qt5-qmake \
qtbase5-dev
FROM base-${UBUNTU_VERSION} AS tools-ubuntu-18
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install \
build-essential \
cmake \
cpanminus \
libbz2-dev \
liblzma-dev \
libmysqlclient-dev \
libncurses5-dev \
libqt5sql5-mysql \
libpng-dev \
libqt5xmlpatterns5-dev \
libssl-dev \
qt5-default \
qt5-qmake \
qtbase5-dev
FROM tools-ubuntu-${UBUNTU_VERSION} AS build
ADD . /megSAP
WORKDIR /megSAP/data
RUN chmod 755 download_*.sh && ./download_tools.sh
FROM base-${UBUNTU_VERSION}
COPY --from=build /megSAP/ /megSAP/
COPY --from=build /megSAP/data/dbs/ /megSAP/data/dbs_static/
COPY --from=build /usr/local/share/perl/ /usr/local/share/perl/
COPY --from=build /usr/local/lib/x86_64-linux-gnu/perl/ /usr/local/lib/x86_64-linux-gnu/perl/
COPY --from=build /usr/local/bin/ /usr/local/bin/
WORKDIR /megSAP
ENTRYPOINT ["/bin/bash"]