Code Review
/
appc
/
deployment.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Run cdt nodejs as non-root user
[appc/deployment.git]
/
cdt
/
src
/
main
/
docker
/
Dockerfile
diff --git
a/cdt/src/main/docker/Dockerfile
b/cdt/src/main/docker/Dockerfile
index
caa6ff1
..
a826052
100644
(file)
--- a/
cdt/src/main/docker/Dockerfile
+++ b/
cdt/src/main/docker/Dockerfile
@@
-19,10
+19,15
@@
#
# ============LICENSE_END============================================
#
# ============LICENSE_END============================================
-# Base
ubuntu
with added packages needed for ONAP
-FROM
httpd
+# Base
Alpine
with added packages needed for ONAP
+FROM
node:10.15.3-alpine
MAINTAINER APP-C Team (appc@lists.openecomp.org)
MAINTAINER APP-C Team (appc@lists.openecomp.org)
-COPY config-design-tool /usr/local/apache2/htdocs/
+USER root
+COPY --chown=node:node config-design-tool /opt/cdt
+COPY --chown=node:node startCdt.sh /opt/startCdt.sh
+COPY --chown=node:node cert /opt/cert
+RUN npm install express --save
+USER node
+RUN mkdir /opt/cdt/logs
-COPY startCdt.sh /opt