forked from fabric8-analytics/f8a-hpf-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (18 loc) · 758 Bytes
/
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
FROM centos:7
LABEL maintainer="Lucky Suman <[email protected]>"
RUN yum install -y epel-release &&\
yum install -y zip gcc-c++ git python36-pip python36-requests httpd httpd-devel python36-devel &&\
yum clean all
COPY ./requirements.txt /requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-rudra#egg=rudra
RUN pip3 install -r /requirements.txt && rm /requirements.txt
COPY ./src /src
COPY ./tools /tools
COPY ./tests/test_data /tests/test_data
COPY ./src/config.py.template /src/config.py
ADD ./entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
RUN pip3 install Cython==0.29.1 && pip3 install hpfrec==0.2.2.9
EXPOSE 6006
ENTRYPOINT ["/bin/entrypoint.sh"]