X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=ea867adc19a19b3e65c589b89eec592a23e5294d;hb=97aaf161d02804c08cffff826f3afdb7690ee5bb;hp=f1d16b7b02be61d025a90cfea29d5eb349108391;hpb=acdd3f361ff7af58b0276789cc5148180a06e552;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index f1d16b7b..ea867adc 100644 --- a/test/mrstub/Dockerfile +++ b/test/mrstub/Dockerfile @@ -15,14 +15,27 @@ # ============LICENSE_END================================================= # -FROM python:3.7 +#Dockerfile to create an image with both python3.8 and nodejs 14 +FROM python:3.8 WORKDIR /usr/src/app +#Install python modules COPY requirements.txt requirements.txt - RUN pip install -r requirements.txt +#Install nodejs and packages +RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - +RUN apt-get install -y nodejs +COPY package.json package.json +RUN npm install express +RUN npm install express-http-proxy + +#Copy apps and start script COPY mr.py mr.py +COPY frontend.js frontend.js +COPY start.sh start.sh + +RUN chmod +x ./start.sh -CMD [ "python3", "-u", "./mr.py" ] \ No newline at end of file +CMD ["./start.sh"] \ No newline at end of file