-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
41 lines (34 loc) · 1.89 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
FROM tiangolo/uwsgi-nginx-flask:python3.6
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install nano vim git python3-pydot python-pydot python-pydot-ng graphviz python3-tk zip unzip curl ftp fail2ban python3-openssl xdg-utils
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
RUN apt-get install nodejs
COPY ./docker-sec-confs/sysctl.conf /etc/sysctl.conf
COPY ./docker-sec-confs/limits.conf /etc/security/limits.conf
COPY ./docker-sec-confs/nginx.conf /etc/nginx/nginx.conf
#COPY ./docker-sec-confs/nginx_ssl.conf /etc/nginx/conf.d/nginx_ssl.conf
COPY ./docker-sec-confs/jail.local /etc/fail2ban/jail.local
RUN pip install --no-cache-dir -U pm4py==1.2.2 Flask flask-cors setuptools
RUN pip install --no-cache-dir -U pm4pycvxopt
#RUN pip install --no-cache-dir -U pm4pybpmn
RUN pip install --no-cache-dir -U pp-role-mining
RUN pip install --no-cache-dir -U p_connector_dfg
RUN pip install --no-cache-dir -U p_tlkc_privacy
RUN pip install pm4py==1.1.26
COPY . /app
#RUN cd /app/files && python download_big_logs.py
RUN echo "enable_session = True" >> /app/pm4pywsconfiguration/configuration.py
RUN echo "static_folder = '/app/webapp2/dist'" >> /app/pm4pywsconfiguration/configuration.py
RUN echo "ssl_context_directory = '/app/ssl_cert_gen'" >> /app/pm4pywsconfiguration/configuration.py
RUN echo "log_manager_default_variant = 'multinode_file_based'" >> /app/pm4pywsconfiguration/configuration.py
#RUN pip install --no-cache-dir -U pyOpenSSL
#RUN cd /app/ssl_cert_gen && python create.py
RUN mkdir -p /app/webapp2
RUN rm -rRf /app/webapp2
RUN cd /app && git clone https://github.com/Javert899/source.git
RUN mv /app/source /app/webapp2
RUN cd /app/webapp2 && git checkout privacyIntegration
RUN cd /app/webapp2 && npm install && npm install --save-dev --unsafe-perm node-sass && npm install -g @angular/core @angular/cli @angular/material
RUN cd /app/webapp2 && ng build
#RUN cd /app && python setup.py install