-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
89 lines (73 loc) · 2.04 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
FROM ubuntu:20.04 as builder
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
gcc \
git \
g++ \
libcgi-pm-perl \
libgd-perl \
libgraphviz-perl \
make \
wget
WORKDIR /
RUN git clone https://github.com/yeastgenome/GoToolsDocker.git \
&& wget https://cpan.metacpan.org/authors/id/S/SH/SHERLOCK/GO-TermFinder-0.86.tar.gz \
&& tar xvfz GO-TermFinder-0.86.tar.gz
WORKDIR /GO-TermFinder-0.86
RUN perl Makefile.PL \
&& make \
&& make install
#####
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get autoremove \
&& apt-get install -y \
apache2 \
build-essential \
curl \
git \
graphviz \
libapache2-mod-wsgi-py3 \
libcgi-pm-perl \
libdata-stag-perl \
libfile-which-perl \
libgd-perl \
libgo-perl \
libgraphviz-perl \
libio-string-perl \
libipc-run-perl \
net-tools \
python3-pip \
unzip \
wget \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
&& rm -r aws awscliv2.zip \
&& DEBIAN_FRONTEND=noninteractive apt-get purge -y curl unzip \
&& pip3 install Flask \
&& pip3 install boto3 \
&& pip3 install -U flask-cors \
&& pip3 install virtualenv
WORKDIR /usr/local/lib/x86_64-linux-gnu/perl/5.30.0
COPY --from=builder /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 .
WORKDIR /var/www/data
WORKDIR /var/www/html
RUN chmod 1777 .
WORKDIR /var/www/tmp
RUN chmod 1777 .
COPY --from=builder /GoToolsDocker/www /var/www/
WORKDIR /etc/apache2/sites-available
COPY --from=builder /GoToolsDocker/FlaskApp.conf .
WORKDIR /var/www/FlaskApp/FlaskApp
RUN a2enmod wsgi \
&& a2ensite FlaskApp \
&& a2dissite 000-default \
&& virtualenv venv \
&& . venv/bin/activate
WORKDIR /
CMD ["apachectl", "-D", "FOREGROUND"]