X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Dockerfile;h=91cfc542ee8a8d962e468f3e4d8ff6bf12c648fb;hb=refs%2Fchanges%2F73%2F6473%2F1;hp=df9c2b85cffbdfc87fcd7ce151cf654bea5250aa;hpb=4f8b2a6fc8581b8227489d857f06d7734883700a;p=ric-app%2Fad.git diff --git a/Dockerfile b/Dockerfile index df9c2b8..91cfc54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ # ================================================================================== -# Copyright (c) 2019 AT&T Intellectual Property. # Copyright (c) 2020 HCL Technologies Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -28,14 +27,12 @@ ENV RMR_SEED_RT /opt/route/local.rt RUN apk update && apk add gcc musl-dev RUN pip install ricxappframe -RUN conda update -n base -c defaults conda -RUN conda install pandas -RUN conda install -c conda-forge/label/cf202003 hdbscan -RUN pip install schedule -RUN conda install scikit-learn -#RUN pip install -U scikit-learn -COPY ad/ /tmp/ad +# Install +COPY setup.py /tmp +COPY LICENSE.txt /tmp/ +# RUN mkdir -p /tmp/ad/ +COPY ad/ /ad +RUN pip install /tmp ENV PYTHONUNBUFFERED 1 -CMD python -W ignore /tmp/ad/main.py - +CMD PYTHONPATH=/ad:/usr/lib/python3.7/site-packages/:$PYTHONPATH run-ad.py