blob: a2b9291ea1df1f571b6e6f79d1abc3c343b5333d [file] [log] [blame]
Dan Timoney0b9839e2020-09-01 16:21:53 -04001# Base standard ONAP java base image with added packages needed for nodered
2FROM onap/ccsdk-alpine-j11-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
Dan Timoney0b9839e2020-09-01 16:21:53 -04005USER root
Dan Timoney0b9839e2020-09-01 16:21:53 -04006
Singal, Kapil (ks220y)776684f2021-03-21 23:46:18 -04007RUN 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 Timoney0b9839e2020-09-01 16:21:53 -040012
Timoney, Dan (dt5972)38e175f2019-02-21 14:57:34 -050013COPY --chown=dgbuilder:dgbuilder opt /opt
Singal, Kapil (ks220y)776684f2021-03-21 23:46:18 -040014
Chinthakayala,Sheshashailavas(sc2914)6d1e46d2018-03-14 21:18:28 +000015WORKDIR /opt/onap/ccsdk/dgbuilder
Singal, Kapil (ks220y)776684f2021-03-21 23:46:18 -040016
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090017# Set the proxy if needed
18# RUN npm config set proxy http://your.proxy.com:8080
Dan Timoney0b9839e2020-09-01 16:21:53 -040019RUN cd /opt/onap/ccsdk/dgbuilder/ && npm config set strict-ssl false && npm install
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090020
Chinthakayala,Sheshashailavas(sc2914)6d1e46d2018-03-14 21:18:28 +000021#ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0
Timoney, Dan (dt5972)38e175f2019-02-21 14:57:34 -050022USER dgbuilder
Chinthakayala, Sheshashailavas (sc2914)b7d0c7d2017-08-28 09:00:36 -090023EXPOSE 3100