X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=test%2Fmrstub%2FDockerfile;h=2f8feb31397f5e31e075410dcd7d19ce6d0d4aac;hb=805ac7cae6f73802179b105941ebb12183de91a7;hp=5219e74763bd8ca7fcf1f96a909f14ab8f1b56d7;hpb=b83e54c2bdab21d7f6ff5c9a4c340e801c93e1c2;p=nonrtric.git diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile index 5219e747..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. @@ -17,20 +17,17 @@ ARG NEXUS_PROXY_REPO -FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster +FROM ${NEXUS_PROXY_REPO}alpine:3.17.3 -COPY app/ /usr/src/app/ -COPY cert/ /usr/src/app/cert/ +RUN apk add --update --no-cache python3 py3-pip nginx -WORKDIR /usr/src/app/ +WORKDIR /usr/src/app -RUN chmod +x start.sh +COPY app/ . +COPY cert/ ./cert/ -#install nginx -RUN apt-get update -RUN apt-get install -y nginx=1.14.* +RUN pip3 install -r requirements.txt -#start mrstub -RUN pip install -r requirements.txt +RUN chmod +x start.sh -CMD [ "./start.sh" ] \ No newline at end of file +CMD [ "./start.sh" ]