Release 1.0.1
[ric-app/ad.git] / Dockerfile-Unit-Test
index 4f5ec78..e54eecb 100644 (file)
@@ -14,7 +14,7 @@
 #   limitations under the License.
 # ==================================================================================
 
-FROM frolvlad/alpine-miniconda3
+FROM frolvlad/alpine-miniconda3:python3.7
 # FROM python:3.8-alpine
 
 # RMR setup
@@ -28,21 +28,13 @@ COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local
 
 # Upgrade pip, install tox
 RUN pip install --upgrade pip && pip install tox
-
 RUN apk update && apk add gcc musl-dev
-RUN pip install ricxappframe
-RUN conda update -n base -c defaults conda
-RUN conda install -c anaconda pandas
-RUN conda install -c conda-forge/label/cf202003 hdbscan
-RUN pip install schedule
-RUN conda install scikit-learn
 
 # copies
 COPY setup.py tox.ini LICENSE.txt /tmp/
-COPY ad/ /tmp/ad
-COPY tests/ /tmp/tests
 RUN pip install /tmp
-
+COPY src/ /tmp/src
+COPY tests/ /tmp/tests
 # Run the unit tests
 WORKDIR /tmp 
-RUN PYTHONPATH=/tmp/ad:/usr/lib/python3.7/site-packages/:$PYTHONPATH tox -e code,flake8
+RUN PYTHONPATH=/tmp/src:/usr/lib/python3.7/site-packages/:$PYTHONPATH tox -e code,flake8