X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=2f8feb31397f5e31e075410dcd7d19ce6d0d4aac;hb=refs%2Fchanges%2F89%2F10889%2F2;hp=ea867adc19a19b3e65c589b89eec592a23e5294d;hpb=97aaf161d02804c08cffff826f3afdb7690ee5bb;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index ea867adc..2f8feb31 100644 --- a/test/mrstub/Dockerfile +++ b/test/mrstub/Dockerfile @@ -1,5 +1,5 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2020 Nordix Foundation. All rights reserved. +# Copyright (C) 2021-2023 Nordix Foundation. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,27 +15,19 @@ # ============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}alpine:3.17.3 + +RUN apk add --update --no-cache python3 py3-pip nginx -#Install python modules -COPY requirements.txt requirements.txt -RUN pip install -r requirements.txt +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 +COPY app/ . +COPY cert/ ./cert/ -#Copy apps and start script -COPY mr.py mr.py -COPY frontend.js frontend.js -COPY start.sh start.sh +RUN pip3 install -r requirements.txt -RUN chmod +x ./start.sh +RUN chmod +x start.sh -CMD ["./start.sh"] \ No newline at end of file +CMD [ "./start.sh" ]