aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: fb07095368c19c236187b281594ffdeb4cda0ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10.4-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:10.0.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"]