blob: ed3656a95c7a7f43c6a6cf7e00d5ddac99abcbc4 [file] [log] [blame]
FROM onap/integration-python:10.0.0
USER root
WORKDIR /home/onap
COPY ./requirements.txt ./
RUN python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
ENV user=onap group=onap
USER onap
ENV PATH=$PATH:/home/onap/.local/bin
COPY --chown=onap:onap main.py /home/onap
COPY --chown=onap:onap setup.py /home/onap
COPY --chown=onap:onap RanNssmfSimulator /home/onap/RanNssmfSimulator
RUN chmod 770 /home/onap/main.py && \
chmod 770 /home/onap/setup.py && \
chmod 770 -R /home/onap/RanNssmfSimulator
CMD [ "python3", "main.py" ]