-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
75 lines (64 loc) · 2.41 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
FROM codinuum/cca:devel
MAINTAINER ebtxhpc
RUN set -x && \
mkdir -p /var/lib/cca/projects && \
mkdir -p /var/lib/cca/mongo/db && \
chown -R cca:cca /var/lib/cca
COPY cca /opt/cca/
RUN set -x && \
apt-get update && \
env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gnupg2 && \
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | apt-key add - && \
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" \
| tee /etc/apt/sources.list.d/mongodb-org-5.0.list && \
apt-get update && \
env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
mongodb-org
RUN set -x && \
apt-get update && \
env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3-sympy \
python3-scipy \
python3-sklearn \
python3-psutil \
apache2 \
python3-pymongo && \
pip3 install msgpack simplejson gensim supervisor
COPY python /root/python
RUN set -x && \
cd /root/python && \
python3 -m build && \
pip3 install dist/ebt-*.tar.gz && \
cd /root && \
rm -r python
COPY supervisord.conf /etc/
COPY --chown=www-data:www-data www /var/www/
COPY apache2/sites-available/*.conf /etc/apache2/sites-available/
COPY apache2/conf-available/*.conf /etc/apache2/conf-available/
RUN set -x && \
a2ensite cca cca-ssl && \
a2dissite 000-default && \
a2enconf serve-cgi-bin && \
a2enmod cgid && \
mkdir /var/run/apache2 && \
cd /var/www/outline/treeview && \
mkdir metrics outline target topic && \
wget https://code.jquery.com/jquery-3.6.0.min.js && \
wget https://jqueryui.com/resources/download/jquery-ui-1.13.0.zip && \
wget https://codemirror.net/codemirror.zip && \
git clone https://github.com/vakata/jstree && \
unzip jquery-ui-1.13.0.zip && \
unzip codemirror.zip && \
chown www-data:www-data jquery-3.6.0.min.js && \
chown -R www-data:www-data jquery-ui-1.13.0 && \
chown -R www-data:www-data jstree metrics outline target topic && \
ln -s jquery-3.6.0.min.js jquery.min.js && \
ln -s jquery-ui-1.13.0 jquery-ui && \
ln -s codemirror-* codemirror && \
ln -s /var/lib/cca/projects .
RUN set -x && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]