Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 1 | # Base ubuntu with added packages needed for open ecomp |
Timoney, Dan (dt5972) | 04f1074 | 2019-04-03 10:01:32 -0700 | [diff] [blame] | 2 | FROM onap/ccsdk-ubuntu-image:${project.docker.latestfulltag.version} |
Chinthakayala, Sheshashailavas (sc2914) | 28a79d8 | 2017-08-29 11:59:10 -0900 | [diff] [blame] | 3 | MAINTAINER CCSDK Team (onap-discuss@lists.onap.org) |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 4 | |
Timoney, Dan (dt5972) | 38e175f | 2019-02-21 14:57:34 -0500 | [diff] [blame] | 5 | # Create non-root user |
| 6 | RUN addgroup --system dgbuilder && adduser --system --ingroup dgbuilder dgbuilder |
| 7 | |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 8 | # copy onap |
Timoney, Dan (dt5972) | 38e175f | 2019-02-21 14:57:34 -0500 | [diff] [blame] | 9 | COPY --chown=dgbuilder:dgbuilder opt /opt |
Chinthakayala,Sheshashailavas(sc2914) | 6d1e46d | 2018-03-14 21:18:28 +0000 | [diff] [blame] | 10 | WORKDIR /opt/onap/ccsdk/dgbuilder |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 11 | # Set the proxy if needed |
| 12 | # RUN npm config set proxy http://your.proxy.com:8080 |
Petr OspalĂ˝ | 00bb4fa | 2019-06-17 09:33:33 +0200 | [diff] [blame] | 13 | RUN cd /opt/onap/ccsdk/dgbuilder/ && npm install |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 14 | |
Chinthakayala,Sheshashailavas(sc2914) | 6d1e46d | 2018-03-14 21:18:28 +0000 | [diff] [blame] | 15 | #ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0 |
Timoney, Dan (dt5972) | 38e175f | 2019-02-21 14:57:34 -0500 | [diff] [blame] | 16 | |
| 17 | USER dgbuilder |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 18 | EXPOSE 3100 |