-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (53 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
63 lines (53 loc) · 1.53 KB
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
FROM ubuntu:latest
MAINTAINER Shamal Faily <admin@cairis.org>
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y build-essential \
python3-dev \
mysql-client \
graphviz \
python3-pip \
python3-numpy \
python3-mysqldb \
git \
default-libmysqlclient-dev \
python3-apt \
libxml2-dev \
libxslt1-dev \
libssl-dev \
apache2 \
apache2-dev \
poppler-utils \
python3-setuptools \
apt-transport-https \
ca-certificates
RUN pip3 install wheel --break-system-packages
#Installing Python modules
COPY docker/requirements.txt /
RUN pip3 install -r requirements.txt --break-system-packages
COPY docker/wsgi_requirements.txt /
RUN pip3 install -r wsgi_requirements.txt --break-system-packages
#Environment Variable starts from here
ENV CAIRIS_SRC=/cairis/cairis
ENV CAIRIS_CFG_DIR=/cairis/docker
ENV CAIRIS_CFG=/cairis.cnf
ENV PYTHONPATH=/cairis
RUN mkdir /tmpDocker
RUN mkdir /images
#Clonning the repo
RUN git clone --depth 1 -b master https://github.com/cairis-platform/cairis /cairis
#creating folder here and moving the files and folder
RUN mkdir /cairisTmp &&\
mv /cairis/cairis /cairisTmp/cairis &&\
rm -rf /cairis/ &&\
mv /cairisTmp/ /cairis/
COPY docker/cairis.cnf /
COPY docker/setupDb.sh /
COPY docker/createdb.sql /
COPY docker/addAccount.sh /
COPY docker/register_user.html /cairis/cairis/daemon/templates/security
RUN /cairis/cairis/bin/installUI.sh
EXPOSE 8000
RUN apt-get remove --purge -y git
RUN apt-get autoremove -y
CMD ["./setupDb.sh"]