summaryrefslogtreecommitdiffstats
path: root/dgbuilder-docker/src/main
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2021-07-17 14:29:10 -0400
committerKAPIL SINGAL <ks220y@att.com>2021-07-17 20:54:09 +0000
commitc3240af7248241bc15e5a08dacb66e8bc097b35c (patch)
tree8a5b7193bb138900909a6d21fd693acd428189f1 /dgbuilder-docker/src/main
parentcf4d991f8f0dad96373616e7b6c9747e077d7643 (diff)
Cleaning up Dockerfiles
Issue-ID: CCSDK-3226 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: If902c2245e52e8cb911b3cb8fc5e78ded0ed3782
Diffstat (limited to 'dgbuilder-docker/src/main')
-rw-r--r--dgbuilder-docker/src/main/docker/Dockerfile12
1 files changed, 4 insertions, 8 deletions
diff --git a/dgbuilder-docker/src/main/docker/Dockerfile b/dgbuilder-docker/src/main/docker/Dockerfile
index a2b9291e..0ca8c04f 100644
--- a/dgbuilder-docker/src/main/docker/Dockerfile
+++ b/dgbuilder-docker/src/main/docker/Dockerfile
@@ -1,23 +1,19 @@
# Base standard ONAP java base image with added packages needed for nodered
FROM onap/ccsdk-alpine-j11-image:${project.docker.latestfulltag.version}
MAINTAINER CCSDK Team (onap-discuss@lists.onap.org)
-
USER root
RUN addgroup -S dgbuilder && adduser -S dgbuilder -G dgbuilder \
- && apk --no-cache add curl \
- && apk add gcc g++ make ncurses \
- && apk update && apk add yarn nodejs \
+ && apk update && apk --no-cache add curl gcc g++ make ncurses yarn nodejs \
&& node --version
COPY --chown=dgbuilder:dgbuilder opt /opt
-WORKDIR /opt/onap/ccsdk/dgbuilder
-
# Set the proxy if needed
# RUN npm config set proxy http://your.proxy.com:8080
-RUN cd /opt/onap/ccsdk/dgbuilder/ && npm config set strict-ssl false && npm install
+RUN cd /opt/onap/ccsdk/dgbuilder && npm config set strict-ssl false && npm install
-#ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0
USER dgbuilder
EXPOSE 3100
+WORKDIR /opt/onap/ccsdk/dgbuilder
+#ENTRYPOINT /bin/bash /opt/onap/ccsdk/dgbuilder/start sdnc1.0