forked from fabric8-analytics/f8a-server-backbone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 939 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
26
27
28
29
30
FROM registry.centos.org/centos/centos:7
ENV F8A_WORKER_VERSION=c019a1e
LABEL name="f8analytics backbone services" \
description="Stack aggregation and recommendation service." \
git-sha="46e443d" \
email-ids="[email protected],[email protected]" \
git-url="https://github.com/fabric8-analytics/f8a-server-backbone" \
git-path="/" \
target-file="Dockerfile" \
app-license="GPL-3.0"
RUN yum install -y epel-release &&\
yum install -y gcc git python34-pip python34-requests httpd httpd-devel python34-devel &&\
yum clean all
COPY ./requirements.txt /
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt && rm requirements.txt
COPY ./src /src
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-worker.git@${F8A_WORKER_VERSION}
ADD scripts/entrypoint.sh /bin/entrypoint.sh
RUN chmod 777 /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]