aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/ran-nssmf-simulator/Dockerfile
blob: ed3656a95c7a7f43c6a6cf7e00d5ddac99abcbc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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" ]