X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=5219e74763bd8ca7fcf1f96a909f14ab8f1b56d7;hb=02a72fd14966d3a7f26e6ef93f1a045607348f14;hp=ea867adc19a19b3e65c589b89eec592a23e5294d;hpb=97aaf161d02804c08cffff826f3afdb7690ee5bb;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index ea867adc..5219e747 100644 --- a/test/mrstub/Dockerfile +++ b/test/mrstub/Dockerfile @@ -15,27 +15,22 @@ # ============LICENSE_END================================================= # -#Dockerfile to create an image with both python3.8 and nodejs 14 -FROM python:3.8 +ARG NEXUS_PROXY_REPO -WORKDIR /usr/src/app +FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster -#Install python modules -COPY requirements.txt requirements.txt -RUN pip install -r requirements.txt +COPY app/ /usr/src/app/ +COPY cert/ /usr/src/app/cert/ + +WORKDIR /usr/src/app/ -#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 +RUN chmod +x start.sh -#Copy apps and start script -COPY mr.py mr.py -COPY frontend.js frontend.js -COPY start.sh start.sh +#install nginx +RUN apt-get update +RUN apt-get install -y nginx=1.14.* -RUN chmod +x ./start.sh +#start mrstub +RUN pip install -r requirements.txt -CMD ["./start.sh"] \ No newline at end of file +CMD [ "./start.sh" ] \ No newline at end of file