-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
25 lines (18 loc) · 912 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 registry.access.redhat.com/ubi8/python-36:latest
LABEL name="f8analytics hpf maven insights service" \
description="Fabric8 analytic maven insights service for recommendation." \
email-ids="[email protected]" \
git-url="https://github.com/fabric8-analytics/f8a-hpf-insights" \
git-path="/" \
target-file="Dockerfile" \
app-license="GPL-3.0"
ENV LANG=en_US.UTF-8 PYTHONDONTWRITEBYTECODE=1
COPY ./requirements.txt /opt/app-root
RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir -r /opt/app-root/requirements.txt
RUN pip3 install --no-cache-dir Cython==0.29.1 && pip3 install --no-cache-dir hpfrec==0.2.2.9 && pip3 install --no-cache-dir connexion==2.7.0
COPY ./src /opt/app-root/src/src
COPY ./tests/test_data /opt/app-root/src/tests/test_data
ADD ./entrypoint.sh /bin/entrypoint.sh
EXPOSE 6006
ENTRYPOINT ["bash", "/bin/entrypoint.sh"]