X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=ac075bfd549ba92b8f50fdcdf6c712cb31a057a1;hb=45ba7815fa87c5999c521b06becf2d54f98e693a;hp=9a15bc39ad224d2e0ca0bd797f174f71106c88dd;hpb=673558028fa7cd77d4c16c52113167b2d4d8021d;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index 9a15bc39..ac075bfd 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 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,22 +15,23 @@ # ============LICENSE_END================================================= # -FROM python:3.8-slim-buster +ARG NEXUS_PROXY_REPO -COPY app/ /usr/src/app/ - -WORKDIR /usr/src/app/ +FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster -RUN chmod +x start.sh +# Change order to fix problem with WSL #install nginx RUN apt-get update RUN apt-get install -y nginx=1.14.* -#install curl -RUN apt-get install -y curl +COPY app/ /usr/src/app/ +COPY cert/ /usr/src/app/cert/ + +WORKDIR /usr/src/app -#start mrstub RUN pip install -r requirements.txt -CMD [ "./start.sh" ] \ No newline at end of file +RUN chmod +x start.sh + +CMD [ "./start.sh" ]