X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fcr%2FDockerfile;h=83530864fbfa1030fa50d0ce991b8eb477687344;hb=2f3e40b4e4786b84cb70848fcdcfadd040ffda4a;hp=bdc3521dcaf560a889e704a3c8af7c348aac8052;hpb=113bf0910498992f20a6cb70f2bc70d4d5b204ca;p=nonrtric.git diff --git a/test/cr/Dockerfile b/test/cr/Dockerfile index bdc3521d..83530864 100644 --- a/test/cr/Dockerfile +++ b/test/cr/Dockerfile @@ -1,5 +1,5 @@ # ============LICENSE_START=============================================== -# Copyright (C) 2020 Nordix Foundation. All rights reserved. +# Copyright (C) 2020-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,19 +15,19 @@ # ============LICENSE_END================================================= # -FROM python:3.8-slim-buster +ARG NEXUS_PROXY_REPO -COPY app/ /usr/src/app/ -COPY cert/ /usr/src/app/cert/ +FROM ${NEXUS_PROXY_REPO}alpine:3.17.3 + +RUN apk add --update --no-cache python3 py3-pip nginx WORKDIR /usr/src/app -RUN pip install -r requirements.txt +COPY app/ . +COPY cert/ ./cert/ -RUN chmod +x start.sh +RUN pip3 install -r requirements.txt -#install nginx -RUN apt-get update -RUN apt-get install -y nginx=1.14.* +RUN chmod +x start.sh CMD [ "./start.sh" ]