Dan Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 1 | # Base standard ONAP java base image with added packages needed for nodered |
| 2 | FROM onap/ccsdk-alpine-j11-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 | |
Dan Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 5 | USER root |
Dan Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 6 | |
Singal, Kapil (ks220y) | 776684f | 2021-03-21 23:46:18 -0400 | [diff] [blame] | 7 | RUN addgroup -S dgbuilder && adduser -S dgbuilder -G dgbuilder \ |
| 8 | && apk --no-cache add curl \ |
| 9 | && apk add gcc g++ make ncurses \ |
| 10 | && apk update && apk add yarn nodejs \ |
| 11 | && node --version |
Dan Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 12 | |
Timoney, Dan (dt5972) | 38e175f | 2019-02-21 14:57:34 -0500 | [diff] [blame] | 13 | COPY --chown=dgbuilder:dgbuilder opt /opt |
Singal, Kapil (ks220y) | 776684f | 2021-03-21 23:46:18 -0400 | [diff] [blame] | 14 | |
Chinthakayala,Sheshashailavas(sc2914) | 6d1e46d | 2018-03-14 21:18:28 +0000 | [diff] [blame] | 15 | WORKDIR /opt/onap/ccsdk/dgbuilder |
Singal, Kapil (ks220y) | 776684f | 2021-03-21 23:46:18 -0400 | [diff] [blame] | 16 | |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 17 | # Set the proxy if needed |
| 18 | # RUN npm config set proxy http://your.proxy.com:8080 |
Dan Timoney | 0b9839e | 2020-09-01 16:21:53 -0400 | [diff] [blame] | 19 | RUN cd /opt/onap/ccsdk/dgbuilder/ && npm config set strict-ssl false && npm install |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 20 | |
Chinthakayala,Sheshashailavas(sc2914) | 6d1e46d | 2018-03-14 21:18:28 +0000 | [diff] [blame] | 21 | #ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0 |
Timoney, Dan (dt5972) | 38e175f | 2019-02-21 14:57:34 -0500 | [diff] [blame] | 22 | USER dgbuilder |
Chinthakayala, Sheshashailavas (sc2914) | b7d0c7d | 2017-08-28 09:00:36 -0900 | [diff] [blame] | 23 | EXPOSE 3100 |