X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=a5f9ea018c3ccf572e24a25f7c9edee42be72547;hb=27b11820d489c7fc2fc1511dcb6c4552a1939c80;hp=ea867adc19a19b3e65c589b89eec592a23e5294d;hpb=c488e37b5803ca41d7b8feb4434cb570aae2cd43;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index ea867adc..a5f9ea01 100644 --- a/test/mrstub/Dockerfile +++ b/test/mrstub/Dockerfile @@ -15,27 +15,27 @@ # ============LICENSE_END================================================= # -#Dockerfile to create an image with both python3.8 and nodejs 14 -FROM python:3.8 +ARG NEXUS_PROXY_REPO + +FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster + +# Change order to fix problem with WSL + +#install nginx +RUN apt-get update +RUN apt-get install -y nginx=1.14.* + +COPY app/ /usr/src/app/ +COPY cert/ /usr/src/app/cert/ 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 -RUN chmod +x ./start.sh +RUN groupadd -g 999 appuser && \ + useradd -r -u 999 -g appuser appuser +USER appuser -CMD ["./start.sh"] \ No newline at end of file +CMD [ "./start.sh" ] \ No newline at end of file