X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fmrstub%2FDockerfile;h=2f8feb31397f5e31e075410dcd7d19ce6d0d4aac;hb=84525a0316cc1626fe4d6328283d4578f735ae9b;hp=f1d16b7b02be61d025a90cfea29d5eb349108391;hpb=34882342628629b55c19e7f6a5369de045ab9102;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index f1d16b7b..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,14 +15,19 @@ # ============LICENSE_END================================================= # -FROM python:3.7 +ARG NEXUS_PROXY_REPO + +FROM ${NEXUS_PROXY_REPO}alpine:3.17.3 + +RUN apk add --update --no-cache python3 py3-pip nginx WORKDIR /usr/src/app -COPY requirements.txt requirements.txt +COPY app/ . +COPY cert/ ./cert/ -RUN pip install -r requirements.txt +RUN pip3 install -r requirements.txt -COPY mr.py mr.py +RUN chmod +x start.sh -CMD [ "python3", "-u", "./mr.py" ] \ No newline at end of file +CMD [ "./start.sh" ]