X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fprodstub%2FDockerfile;h=83530864fbfa1030fa50d0ce991b8eb477687344;hb=refs%2Fchanges%2F89%2F10889%2F2;hp=0a027e4daf63d725124caa3617e9bcf610a6775f;hpb=27b11820d489c7fc2fc1511dcb6c4552a1939c80;p=nonrtric.git diff --git a/test/prodstub/Dockerfile b/test/prodstub/Dockerfile index 0a027e4d..83530864 100644 --- a/test/prodstub/Dockerfile +++ b/test/prodstub/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. @@ -17,23 +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 -RUN pip install -r requirements.txt +COPY app/ . +COPY cert/ ./cert/ -RUN chmod +x start.sh - -#install nginx -RUN apt-get update -RUN apt-get install -y nginx=1.14.* +RUN pip3 install -r requirements.txt -RUN groupadd -g 999 appuser && \ - useradd -r -u 999 -g appuser appuser -USER appuser +RUN chmod +x start.sh CMD [ "./start.sh" ]