summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 6f125368c480034ebf30571424ad7b65690e26d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9-slim AS builder

COPY requirements.txt /opt/app/onap_data_provider/requirements.txt

WORKDIR /opt/app/onap_data_provider/

RUN python -m pip install -r requirements.txt --prefix=/opt/install

FROM nexus3.onap.org:10001/onap/integration-python:9.1.0

COPY --from=builder --chown=onap:onap /opt/install /usr/local

COPY --chown=onap:onap . /opt/app/onap_data_provider

WORKDIR /opt/app/onap_data_provider/

RUN python setup.py install

CMD ["onap-data-provider"]