blob: 9acb7a5c895a82a9d696b9c4adb9bb025c5f0d60 [file] [log] [blame]
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -09001# Base ubuntu with added packages needed for open ecomp
Timoney, Dan (dt5972)04f10742019-04-03 10:01:32 -07002FROM onap/ccsdk-ubuntu-image:${project.docker.latestfulltag.version}
Chinthakayala, Sheshashailavas (sc2914)28a79d82017-08-29 11:59:10 -09003MAINTAINER CCSDK Team (onap-discuss@lists.onap.org)
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -09004
Timoney, Dan (dt5972)38e175f2019-02-21 14:57:34 -05005# Create non-root user
6RUN addgroup --system dgbuilder && adduser --system --ingroup dgbuilder dgbuilder
7
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -09008# copy onap
Timoney, Dan (dt5972)38e175f2019-02-21 14:57:34 -05009COPY --chown=dgbuilder:dgbuilder opt /opt
Chinthakayala,Sheshashailavas(sc2914)6d1e46d2018-03-14 21:18:28 +000010WORKDIR /opt/onap/ccsdk/dgbuilder
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090011# Set the proxy if needed
12# RUN npm config set proxy http://your.proxy.com:8080
Petr Ospalý00bb4fa2019-06-17 09:33:33 +020013RUN cd /opt/onap/ccsdk/dgbuilder/ && npm install
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090014
Chinthakayala,Sheshashailavas(sc2914)6d1e46d2018-03-14 21:18:28 +000015#ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0
Timoney, Dan (dt5972)38e175f2019-02-21 14:57:34 -050016
17USER dgbuilder
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090018EXPOSE 3100