1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 WORKDIR /go/src/github.com/onap/multicloud-k8s
14 RUN cd src/orchestrator && make all
15 RUN cd src/ncm && make all
16 RUN cd src/dcm && make all
17 RUN cd src/rsync && make all
18 RUN cd src/ovnaction && make all
19 RUN cd src/clm && make all
24 RUN groupadd -r mco && useradd -r -g mco mco
25 RUN chown mco:mco /opt/mco -R
26 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/orchestrator/orchestrator ./
27 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/ncm/ncm ./
28 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/dcm/dcm ./
29 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/rsync/rsync ./
30 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/ovnaction/ovnaction ./
31 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/src/clm/clm ./
32 COPY --chown=mco --from=0 /go/src/github.com/onap/multicloud-k8s/build/entrypoint ./
36 ENTRYPOINT ["./entrypoint"]