forked from fabric8-analytics/fabric8-analytics-npm-insights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tests
30 lines (24 loc) · 1.16 KB
/
Dockerfile.tests
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 quay.io/farrion/python3-ml:latest
LABEL MAINTAINER="Avishkar Gupta <avgupta@redhat.com>"
# --------------------------------------------------------------------------------------------------
# copy testing source code and scripts into root dir /
# --------------------------------------------------------------------------------------------------
ADD ./recommendation_engine /recommendation_engine
ADD ./requirements.txt /requirements.txt
ADD ./training/ /training
ADD ./tests/ /tests
ADD ./tests/scripts/entrypoint-test.sh /entrypoint-test.sh
ADD .coveragerc /.coveragerc
ADD ./.git /.git
ADD ./tools /tools
RUN chmod 0777 /entrypoint-test.sh
ENV PYTHONPATH=/
RUN pip3 install --upgrade pip
RUN pip install tensorflow==2.0.0
RUN pip install git+https://github.com/fabric8-analytics/fabric8-analytics-rudra#egg=rudra
RUN pip install pytest pytest-cov radon==2.4.0 codecov raven blinker
RUN pip install -r requirements.txt
# --------------------------------------------------------------------------------------------------
# RUN THE UNIT TESTS
# --------------------------------------------------------------------------------------------------
ENTRYPOINT ["/entrypoint-test.sh"]